[wp-trac] [WordPress Trac] #40454: Make plugin ACTIVATION method constant

WordPress Trac noreply at wordpress.org
Sat Apr 15 10:20:54 UTC 2017


#40454: Make plugin ACTIVATION method constant
-----------------------------+------------------------------
 Reporter:  tazotodua        |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Plugins          |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  administration
-----------------------------+------------------------------
Changes (by SergeyBiryukov):

 * focuses:   => administration
 * component:  General => Plugins


Old description:

> 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.

New description:

 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.

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40454#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list