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

WordPress Trac noreply at wordpress.org
Fri Apr 29 00:09:39 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:  multisite
--------------------------+------------------------------

Comment (by mensmaximus):

 After some more investigation I can definitely say passing `true` to
 `do_action( "activate_{$plugin}" );` in plugins.php line 166 solves the
 described problem.

 The question now is how can we determine whether the plugin activation was
 started on the network admin screen? `is_network_admin()` is not working
 in case `error_scrape` because `WP_NETWORK_ADMIN` is not defined and
 `$GLOBALS['current_screen']->in_admin( 'network' )` is empty. I even tried
 to pass `is_network_admin()` as an argument to `$iframe_url` in `/wp-
 admin/plugins.php` line 438.

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


More information about the wp-trac mailing list