Changeset 45116
- Timestamp:
- 04/05/2019 03:52:39 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
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 ); -
trunk/src/wp-admin/includes/theme.php
r45114 r45116 860 860 // Load the theme's functions.php to test whether it throws a fatal error. 861 861 ob_start(); 862 define( 'WP_SANDBOX_SCRAPING', true ); 862 if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) { 863 define( 'WP_SANDBOX_SCRAPING', true ); 864 } 863 865 include $functions_path; 864 866 ob_clean(); -
trunk/src/wp-includes/load.php
r45114 r45116 1445 1445 die(); 1446 1446 } 1447 define( 'WP_SANDBOX_SCRAPING', true ); 1447 if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) { 1448 define( 'WP_SANDBOX_SCRAPING', true ); 1449 } 1448 1450 register_shutdown_function( 'wp_finalize_scraping_edited_file_errors', $key ); 1449 1451 }
Note: See TracChangeset
for help on using the changeset viewer.