[wp-trac] [WordPress Trac] #30200: Documentation error for activate_plugin hook
WordPress Trac
noreply at wordpress.org
Thu Oct 30 18:16:43 UTC 2014
#30200: Documentation error for activate_plugin hook
----------------------------+-----------------------------
Reporter: wedi | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: trunk
Severity: normal | Keywords:
Focuses: docs |
----------------------------+-----------------------------
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.
https://core.trac.wordpress.org/browser/trunk/src/wp-
admin/includes/plugin.php#L560
My original report for reference:
https://meta.trac.wordpress.org/ticket/606
----------------------------
While investigating, @georgestephanis 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` -- not `plugins.php` --
no `s`.
----------------------------
The attached patch fixes both issues.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30200>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list