Changeset 45114
- Timestamp:
- 04/05/2019 03:19:50 PM (6 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r45085 r45114 632 632 wp_redirect( add_query_arg( '_error_nonce', wp_create_nonce( 'plugin-activation-error_' . $plugin ), $redirect ) ); // we'll override this later if the plugin can be included without fatal error 633 633 } 634 634 635 ob_start(); 635 636 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin ); 636 637 $_wp_plugin_file = $plugin; 638 define( 'WP_SANDBOX_SCRAPING', true ); 637 639 include_once( WP_PLUGIN_DIR . '/' . $plugin ); 638 640 $plugin = $_wp_plugin_file; // Avoid stomping of the $plugin variable in a plugin. … … 2126 2128 */ 2127 2129 function plugin_sandbox_scrape( $plugin ) { 2130 define( 'WP_SANDBOX_SCRAPING', true ); 2128 2131 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $plugin ); 2129 2132 include( WP_PLUGIN_DIR . '/' . $plugin ); -
trunk/src/wp-admin/includes/theme.php
r44975 r45114 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 863 include $functions_path; 863 864 ob_clean(); -
trunk/src/wp-includes/class-wp-fatal-error-handler.php
r45025 r45114 27 27 */ 28 28 public function handle() { 29 if ( defined( 'WP_SANDBOX_SCRAPING' ) && WP_SANDBOX_SCRAPING ) { 30 return; 31 } 32 29 33 try { 30 34 // Bail if no error found. -
trunk/src/wp-includes/load.php
r45022 r45114 1445 1445 die(); 1446 1446 } 1447 define( 'WP_SANDBOX_SCRAPING', true ); 1447 1448 register_shutdown_function( 'wp_finalize_scraping_edited_file_errors', $key ); 1448 1449 }
Note: See TracChangeset
for help on using the changeset viewer.