Changeset 45116 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 04/05/2019 03:52:39 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r45115 r45116 636 636 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin ); 637 637 $_wp_plugin_file = $plugin; 638 define( 'WP_SANDBOX_SCRAPING', true ); 638 if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) { 639 define( 'WP_SANDBOX_SCRAPING', true ); 640 } 639 641 include_once( WP_PLUGIN_DIR . '/' . $plugin ); 640 642 $plugin = $_wp_plugin_file; // Avoid stomping of the $plugin variable in a plugin. … … 2133 2135 */ 2134 2136 function plugin_sandbox_scrape( $plugin ) { 2135 define( 'WP_SANDBOX_SCRAPING', true ); 2137 if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) { 2138 define( 'WP_SANDBOX_SCRAPING', true ); 2139 } 2136 2140 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin ); 2137 2141 include( WP_PLUGIN_DIR . '/' . $plugin );
Note: See TracChangeset
for help on using the changeset viewer.