Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #36406, comment 2


Ignore:
Timestamp:
04/03/2016 11:00:18 AM (9 years ago)
Author:
mensmaximus
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36406, comment 2

    initial v1  
    1 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.
     1Well now I understand the issue arises from calling plugin_sandbox_scrape() in /wp-admin/plugins.php. Just for a test I set
     2{{{
     3$_GET['networkwide'] = 1
     4}}}
     5within plugin_sandbox_scrape() and replaced
     6{{{
     7if ( $network_wide )
     8}}}
     9with
     10{{{
     11if ( $_GET['networkwide'] )
     12}}}
     13in 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.