Correct phpdoc for wp-includes/plugin.php: wp-content/plugins/, not wp-content/plugin/. props technosailor. fixes #23024.
git-svn-id: http://core.svn.wordpress.org/trunk@23190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ba9220bd1f
commit
4e7abbf87b
|
@ -606,10 +606,10 @@ function plugin_dir_url( $file ) {
|
|||
* When a plugin is activated, the action 'activate_PLUGINNAME' hook is
|
||||
* activated. In the name of this hook, PLUGINNAME is replaced with the name of
|
||||
* the plugin, including the optional subdirectory. For example, when the plugin
|
||||
* is located in wp-content/plugin/sampleplugin/sample.php, then the name of
|
||||
* is located in wp-content/plugins/sampleplugin/sample.php, then the name of
|
||||
* this hook will become 'activate_sampleplugin/sample.php'. When the plugin
|
||||
* consists of only one file and is (as by default) located at
|
||||
* wp-content/plugin/sample.php the name of this hook will be
|
||||
* wp-content/plugins/sample.php the name of this hook will be
|
||||
* 'activate_sample.php'.
|
||||
*
|
||||
* @package WordPress
|
||||
|
@ -630,11 +630,11 @@ function register_activation_hook($file, $function) {
|
|||
* When a plugin is deactivated, the action 'deactivate_PLUGINNAME' hook is
|
||||
* deactivated. In the name of this hook, PLUGINNAME is replaced with the name
|
||||
* of the plugin, including the optional subdirectory. For example, when the
|
||||
* plugin is located in wp-content/plugin/sampleplugin/sample.php, then
|
||||
* plugin is located in wp-content/plugins/sampleplugin/sample.php, then
|
||||
* the name of this hook will become 'activate_sampleplugin/sample.php'.
|
||||
*
|
||||
* When the plugin consists of only one file and is (as by default) located at
|
||||
* wp-content/plugin/sample.php the name of this hook will be
|
||||
* wp-content/plugins/sample.php the name of this hook will be
|
||||
* 'activate_sample.php'.
|
||||
*
|
||||
* @package WordPress
|
||||
|
|
Loading…
Reference in New Issue