WordPress.org

Make WordPress Core

Changeset 23999


Ignore:
Timestamp:
04/16/2013 09:53:02 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Fix several copy/paste errors in register_deactivation_hook() description. props Caspie. fixes #24097.

File:
1 edited

Legend:

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

    r23190 r23999  
    605605 *
    606606 * When a plugin is activated, the action 'activate_PLUGINNAME' hook is
    607  * activated. In the name of this hook, PLUGINNAME is replaced with the name of
    608  * the plugin, including the optional subdirectory. For example, when the plugin
    609  * is located in wp-content/plugins/sampleplugin/sample.php, then the name of
    610  * this hook will become 'activate_sampleplugin/sample.php'. When the plugin
    611  * consists of only one file and is (as by default) located at
     607 * called. In the name of this hook, PLUGINNAME is replaced with the name
     608 * of the plugin, including the optional subdirectory. For example, when the
     609 * plugin is located in wp-content/plugins/sampleplugin/sample.php, then
     610 * the name of this hook will become 'activate_sampleplugin/sample.php'.
     611 *
     612 * When the plugin consists of only one file and is (as by default) located at
    612613 * wp-content/plugins/sample.php the name of this hook will be
    613614 * 'activate_sample.php'.
     
    629630 *
    630631 * When a plugin is deactivated, the action 'deactivate_PLUGINNAME' hook is
    631  * deactivated. In the name of this hook, PLUGINNAME is replaced with the name
     632 * called. In the name of this hook, PLUGINNAME is replaced with the name
    632633 * of the plugin, including the optional subdirectory. For example, when the
    633634 * plugin is located in wp-content/plugins/sampleplugin/sample.php, then
    634  * the name of this hook will become 'activate_sampleplugin/sample.php'.
     635 * the name of this hook will become 'deactivate_sampleplugin/sample.php'.
    635636 *
    636637 * When the plugin consists of only one file and is (as by default) located at
    637638 * wp-content/plugins/sample.php the name of this hook will be
    638  * 'activate_sample.php'.
     639 * 'deactivate_sample.php'.
    639640 *
    640641 * @package WordPress
     
    643644 *
    644645 * @param string $file The filename of the plugin including the path.
    645  * @param callback $function the function hooked to the 'activate_PLUGIN' action.
     646 * @param callback $function the function hooked to the 'deactivate_PLUGIN' action.
    646647 */
    647648function register_deactivation_hook($file, $function) {
Note: See TracChangeset for help on using the changeset viewer.