[wp-trac] [WordPress Trac] #36406: $network_wide is unreliable

WordPress Trac noreply at wordpress.org
Sun Apr 3 10:35:01 UTC 2016


#36406: $network_wide is unreliable
--------------------------+------------------------------
 Reporter:  mensmaximus   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Plugins       |     Version:  4.4.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by mensmaximus):

 To visualize this issue better I have captured some information at the
 beginning of the function (where exit(1) is located):

 '''Captured during a successful network activation'''


 {{{
 ***** activate_wpmu-activation-test/index.php: 2016-04-03 10:27:49 *****
 (
     [stage] => 1
     [network_wide] => 1
     [GET] => Array
         (
             [action] => activate
             [plugin] => wpmu-activation-test/index.php
             [plugin_status] => all
             [paged] => 1
             [s] =>
             [_wpnonce] => ed6fce4af2
             [networkwide] => 1
         )

 )
 }}}


 '''Captured while exiting at exit(3) to avoid network activation of the
 plugin'''


 {{{
 ***** activate_wpmu-activation-test/index.php: 2016-04-03 10:25:46 *****
 (
     [stage] => 1
     [network_wide] => 1
     [GET] => Array
         (
             [action] => activate
             [plugin] => wpmu-activation-test/index.php
             [plugin_status] => all
             [paged] => 1
             [s] =>
             [_wpnonce] => ed6fce4af2
             [networkwide] => 1
         )

 )

 ***** activate_wpmu-activation-test/index.php: 2016-04-03 10:25:48 *****
 (
     [stage] => 1
     [network_wide] =>
     [GET] => Array
         (
             [action] => error_scrape
             [plugin] => wpmu-activation-test/index.php
             [_wpnonce] => c9063923af
         )

 )
 ***** activate_wpmu-activation-test/index.php: 2016-04-03 10:25:48 *****
 (
     [stage] => 1
     [network_wide] =>
     [GET] => Array
         (
             [action] => error_scrape
             [plugin] => wpmu-activation-test/index.php
             [_wpnonce] => c9063923af
         )

 )
 }}}

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


More information about the wp-trac mailing list