[wp-trac] [WordPress Trac] #32368: Can't activate other plugins within the plugin activation handler
WordPress Trac
noreply at wordpress.org
Wed May 13 03:51:32 UTC 2015
#32368: Can't activate other plugins within the plugin activation handler
--------------------------+-----------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.3
Component: Plugins | Version:
Severity: normal | Keywords: has-patch
Focuses: |
--------------------------+-----------------------
At present it's impossible to activate another plugin during a plugin
activation handler.
The issue occurs because we fetch the option before running the activation
handler, and then set it after the handler has run, so another
`activate_plugin()` running in that handler is ignored (although the other
plugins activation handlers will run).
Although it could be argued that plugins shouldn't activate other plugins,
sometimes they're required or it's a better user experience to activate
them at the same time.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32368>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list