WordPress.org

Ready to get started?Download WordPress

Forums

plugin activation when updating a plugin to new version (1 post)

  1. orqm
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.