WordPress.org

Making WordPress.org

Opened 5 years ago

Closed 5 years ago

#606 closed defect (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)

#1 @georgestephanis
5 years ago

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 -- not plugins.php -- no s.

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!

#2 @wedi
5 years ago

  • Keywords close added

Thanks for pointing me to the right direction!

I submitted a patch for both issues: https://core.trac.wordpress.org/ticket/30200

#3 @siobhan
5 years ago

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.