Opened 8 years ago
Closed 9 months ago
#40454 closed feature request (duplicate)
Make plugin activation method constant
Reported by: | tazotodua | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Plugins | Keywords: | |
Focuses: | administration | Cc: |
Description (last modified by )
for example, there are plugins, that redirect to it's setting spage imediately after that plugin is activated (with 'activated_plugin' hook if i correctly remember).
however, when I activate plugin in bulk, bulk activation is stopped at that specific plugin, then it redirects to its settings page.
I think, there should be something like this:
if(!BULK_PLUGIN_ACTIVATION){ redirect..... }
so, make something , as developer could differentiate between individual and bulk activation.
Change History (6)
Note: See
TracTickets for help on using
tickets.
Right now this is possible by doing:
One obvious issue is that "activate-selected" might change as an action name in the future.
Same can be done with 'deactivate-selected'.
Just an idea.
Another option is to check the function call backtrace, all the way up to
activate_plugin
and then one more step up to see if it'sactivate_plugins
or not.A bit hacky, but will work, as well.