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

WordPress Trac noreply at wordpress.org
Sun Apr 3 10:59:10 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):

 Well now I understand the issue arises from calling
 plugin_sandbox_scrape() in /wp-admin/plugins.php. Just for a test I set
 $_GET['networkwide'] = 1 within plugin_sandbox_scrape() and replaced 'if (
 $network_wide )' with 'if ( $_GET['networkwide'] )' in my activation test
 (the back compat for plugins). As a result the message I want to show is
 displayed. However this is not a (good) solution and still I think calling
 plugin_sandbox_scrape() twice is wrong.

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


More information about the wp-trac mailing list