Opened 10 years ago
Closed 10 years ago
#606 closed defect (bug) (invalid)
Documentation error for activate_plugin hook
Reported by: | wedi | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Developer Hub | Keywords: | close |
Cc: |
Description
The documentation for the activate_plugin
hook is erroneous. In the beginning it says that the hook gets fired on plugin deactivation. When you read further it suddenly says activation. This is probably a simple copy&paste error.
http://developer.wordpress.org/reference/hooks/activate_plugin/
This might be the wrong place to report issues in the WordPress code reference but I haven't found any information about a better place. I'll add another ticket requesting some prominent information about bugreports in the code reference.
Change History (3)
Note: See
TracTickets for help on using
tickets.
All the documentation in developer.wordpress.org is built using WordPress's internal phpdoc documentation, so that's actually a documentation error in the WordPress source.
You can see the actual spot here:
https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/plugin.php#L560
While investigating, I also noticed a bad reference here:
https://core.trac.wordpress.org/browser/trunk/src/wp-admin/plugins.php#L154
It should refer to
wp-admin/includes/plugin.php
-- notplugins.php
-- nos
.If you'd like to put together a core patch for this and submit it to core trac, I'd be delighted to help walk you through the process. If not, let me know, and I'd be happy to just put it together on your behalf and tag you for bringing it up.
Good find!