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. |
| 1 | Well 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 | }}} |
| 5 | within plugin_sandbox_scrape() and replaced |
| 6 | {{{ |
| 7 | if ( $network_wide ) |
| 8 | }}} |
| 9 | with |
| 10 | {{{ |
| 11 | if ( $_GET['networkwide'] ) |
| 12 | }}} |
| 13 | 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. |