Support » Requests and Feedback » plugin activation when updating a plugin to new version

  • hi,
    i am not sure if that is a bug or not but it not letting some plugins
    to activate correctly

    there are a new variable “$silent” in function activate_plugin
    when updating a plugin wordpress will download the plugin, remove
    the old plugin dir, set the new plugin dir and then attempt to
    activate the plugin by calling wp-admin/update.php
    in this file in line 74: activate_plugin( $plugin, ”, ! empty( $_GET[‘networkwide’] ), true );
    the $silent var is set to true which will not let the actions
    ‘activate_plugin’, ‘activate_’ . $plugin & ‘activated_plugin’ to
    execute in function activate_plugin, so the plugin will activate
    without runnig the code assignet to those hooks

  • The topic ‘plugin activation when updating a plugin to new version’ is closed to new replies.