Make WordPress Core

Ticket #25229: wp-admin-includes-plugin.4.diff

File wp-admin-includes-plugin.4.diff, 5.0 KB (added by SergeyBiryukov, 11 years ago)
  • src/wp-admin/includes/plugin.php

     
    541541
    542542                if ( ! $silent ) {
    543543                        /**
    544                          * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false
     544                         * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false.
    545545                         *
    546546                         * @since 2.9.0
    547547                         *
    548                          * @param string $plugin       Basename of the plugin path from {@see activate_plugin()}.
    549                          * @param bool   $network_wide Argument from {@see activate_plugin()}.
     548                         * @param string $plugin       Plugin path to main plugin file with plugin data.
     549                         * @param bool   $network_wide Whether to enable the plugin for all sites in the network
     550                         *                             or just the current site. Multisite only. Default is false.
    550551                         */
    551552                        do_action( 'activate_plugin', $plugin, $network_wide );
    552553
    553554                        /**
    554                          * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false
     555                         * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false.
    555556                         *
    556557                         * The action concatenates the 'activate_' prefix with the $plugin value passed to
    557                          * activate_plugin() to create a dynamically named action.
     558                         * activate_plugin() to create a dynamically-named action.
    558559                         *
    559560                         * @since 2.0.0
    560561                         *
    561                          * @param bool $network_wide Argument from {@see activate_plugin()}.
     562                         * @param bool $network_wide Whether to enable the plugin for all sites in the network
     563                         *                           or just the current site. Multisite only. Default is false.
    562564                         */
    563565                        do_action( 'activate_' . $plugin, $network_wide );
    564566                }
     
    574576
    575577                if ( ! $silent ) {
    576578                        /**
    577                          * Fires after a plugin has been activated in activate_plugin() when the $silent parameter is false
     579                         * Fires after a plugin has been activated in activate_plugin() when the $silent parameter is false.
    578580                         *
    579581                         * @since 2.9.0
    580582                         *
    581                          * @param string $plugin       Basename of the plugin path from {@see activate_plugin()}.
    582                          * @param bool   $network_wide Argument from {@see activate_plugin()}.
     583                         * @param string $plugin       Plugin path to main plugin file with plugin data.
     584                         * @param bool   $network_wide Whether to enable the plugin for all sites in the network
     585                         *                             or just the current site. Multisite only. Default is false.
    583586                         */
    584587                        do_action( 'activated_plugin', $plugin, $network_wide );
    585588                }
     
    627630                         *
    628631                         * @since 2.9.0
    629632                         *
    630                          * @param string $plugin               Basename of the plugin path from {@see activate_plugin()}.
    631                          * @param bool   $network_deactivating True if $network_wide passed in {@see deactivate_plugin()} is true and the plugin is active for the network.
     633                         * @param string $plugin               Plugin path to main plugin file with plugin data.
     634                         * @param bool   $network_deactivating Whether the plugin is deactivated for all sites in the network
     635                         *                                     or just the current site. Multisite only. Default is false.
    632636                         */
    633637                        do_action( 'deactivate_plugin', $plugin, $network_deactivating );
    634638
     
    655659                         * and when the $silent parameter is false.
    656660                         *
    657661                         * The action concatenates the 'deactivate_' prefix with the plugin's basename
    658                          * to create a dynamically named action.
     662                         * to create a dynamically-named action.
    659663                         *
    660664                         * @since 2.0.0
    661665                         *
    662                          * @param bool $network_deactivating True if $network_wide passed in {@see deactivate_plugin()} is true and the plugin is active for the network.
     666                         * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network
     667                         *                                   or just the current site. Multisite only. Default is false.
    663668                         */
    664669                        do_action( 'deactivate_' . $plugin, $network_deactivating );
    665670
     
    669674                         *
    670675                         * @since 2.9.0
    671676                         *
    672                          * @param string $plugin               Basename of the plugin path from {@see activate_plugin()}.
    673                          * @param bool   $network_deactivating True if $network_wide passed in {@see deactivate_plugin()} is true and the plugin is active for the network.
     677                         * @param string $plugin               Plugin path to main plugin file with plugin data.
     678                         * @param bool   $network_deactivating Whether the plugin is deactivated for all sites in the network
     679                         *                                     or just the current site. Multisite only. Default is false.
    674680                         */
    675681                        do_action( 'deactivated_plugin', $plugin, $network_deactivating );
    676682                }
     
    927933                 * Fires in uninstall_plugin() once the plugin has been uninstalled.
    928934                 *
    929935                 * The action concatenates the 'uninstall_' prefix with the basename of the
    930                  * plugin passed to {@see uninstall_plugin()} to create a dynamically named action.
     936                 * plugin passed to {@see uninstall_plugin()} to create a dynamically-named action.
    931937                 *
    932938                 * @since 2.7.0
    933939                 */