Fix docs for the `deactivate_$plugin` and `deactivated_plugin` hooks.

Props wpsmith for the original patch.
Fixes #27189

Built from https://develop.svn.wordpress.org/trunk@27491


git-svn-id: http://core.svn.wordpress.org/trunk@27335 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2014-03-10 21:34:17 +00:00
parent d56f4a30b9
commit a271ca696b
1 changed files with 9 additions and 8 deletions

View File

@ -657,11 +657,11 @@ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
if ( ! $silent ) { if ( ! $silent ) {
/** /**
* Fires for each plugin being deactivated in deactivate_plugins(), after deactivation * Fires before a specific plugin is deactivated.
* and when the $silent parameter is false.
* *
* The action concatenates the 'deactivate_' prefix with the plugin's basename * The dynamic portion of the hook name, $plugin. refers to the plugin basename.
* to create a dynamically-named action. *
* The hook only first when the $silent parameter is false.
* *
* @since 2.0.0 * @since 2.0.0
* *
@ -671,14 +671,15 @@ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
do_action( 'deactivate_' . $plugin, $network_deactivating ); do_action( 'deactivate_' . $plugin, $network_deactivating );
/** /**
* Fires for each plugin being deactivated in deactivate_plugins(), after deactivation * Fires before a plugin is deactivated.
* and when the $silent parameter is false. *
* The hook only fies when the $silent parameter is false.
* *
* @since 2.9.0 * @since 2.9.0
* *
* @param string $plugin Plugin path to main plugin file with plugin data. * @param string $plugin Plugin basename.
* @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network
* or just the current site. Multisite only. Default is false. * or just the current site. Multisite only. Default false.
*/ */
do_action( 'deactivated_plugin', $plugin, $network_deactivating ); do_action( 'deactivated_plugin', $plugin, $network_deactivating );
} }