Make WordPress Core

Changeset 27769


Ignore:
Timestamp:
03/27/2014 02:01:29 AM (12 years ago)
Author:
nacin
Message:

Fix docs for hooks in deactivate_plugins() and activate_plugin(). see #27189, #27188.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin.php

    r27491 r27769  
    543543                if ( ! $silent ) {
    544544                        /**
    545                          * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false.
     545                         * Fires before a plugin is activated.
     546                         *
     547                         * If a plugin is silently activated (such as during an update),
     548                         * this hook does not fire.
    546549                         *
    547550                         * @since 2.9.0
     
    554557
    555558                        /**
    556                          * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false.
    557                          *
    558                          * The action concatenates the 'activate_' prefix with the $plugin value passed to
    559                          * activate_plugin() to create a dynamically-named action.
     559                         * Fires as a specific plugin is being deactivated.
     560                         *
     561                         * This hook is the "deactivation" hook used internally by
     562                         * register_deactivation_hook(). The dynamic portion of the
     563                         * hook name, $plugin. refers to the plugin basename.
     564                         *
     565                         * If a plugin is silently activated (such as during an update),
     566                         * this hook does not fire.
    560567                         *
    561568                         * @since 2.0.0
     
    578585                if ( ! $silent ) {
    579586                        /**
    580                          * Fires after a plugin has been activated in activate_plugin() when the $silent parameter is false.
     587                         * Fires after a plugin has been activated.
     588                         *
     589                         * If a plugin is silently activated (such as during an update),
     590                         * this hook does not fire.
    581591                         *
    582592                         * @since 2.9.0
     
    627637                if ( ! $silent ) {
    628638                        /**
    629                          * Fires for each plugin being deactivated in deactivate_plugins(), before deactivation
    630                          * and when the $silent parameter is false.
     639                         * Fires before a plugin is deactivated.
     640                         *
     641                         * If a plugin is silently deactivated (such as during an update),
     642                         * this hook does not fire.
    631643                         *
    632644                         * @since 2.9.0
     
    658670                if ( ! $silent ) {
    659671                        /**
    660                          * Fires before a specific plugin is deactivated.
    661                          *
    662                          * The dynamic portion of the hook name, $plugin. refers to the plugin basename.
    663                          *
    664                          * The hook only first when the $silent parameter is false.
     672                         * Fires as a specific plugin is being deactivated.
     673                         *
     674                         * This hook is the "deactivation" hook used internally by
     675                         * register_deactivation_hook(). The dynamic portion of the
     676                         * hook name, $plugin. refers to the plugin basename.
     677                         *
     678                         * If a plugin is silently deactivated (such as during an update),
     679                         * this hook does not fire.
    665680                         *
    666681                         * @since 2.0.0
     
    672687
    673688                        /**
    674                          * Fires before a plugin is deactivated.
    675                          *
    676                          * The hook only fies when the $silent parameter is false.
     689                         * Fires after a plugin is deactivated.
     690                         *
     691                         * If a plugin is silently deactivated (such as during an update),
     692                         * this hook does not fire.
    677693                         *
    678694                         * @since 2.9.0
Note: See TracChangeset for help on using the changeset viewer.