Opened 9 years ago
Closed 9 years ago
#30200 closed defect (bug) (fixed)
Documentation error for activate_plugin hook
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | 4.1 |
Component: | Plugins | Keywords: | |
Focuses: | docs | 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.
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.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
The first part was introduced in [27769] and fixed in [29977].
The second part was introduced in [26345].