Opened 10 years ago
Closed 10 years ago
#32368 closed defect (bug) (fixed)
Can't activate other plugins within the plugin activation handler
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Plugins | Keywords: | has-patch |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
In 32504: