Opened 12 years ago
Closed 12 years ago
#30200 closed defect (bug) (fixed)
Documentation error for activate_plugin hook
| Reported by: | wedi | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.1 |
| Component: | Plugins | Version: | 4.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | docs |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The first part was introduced in [27769] and fixed in [29977].
The second part was introduced in [26345].