Opened 11 years ago
Closed 11 years ago
#32368 closed defect (bug) (fixed)
Can't activate other plugins within the plugin activation handler
| Reported by: | dd32 | Owned by: | dd32 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.3 |
| Component: | Plugins | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 32504: