Bootstrap/Load: Do not redefine constants because tests don't like it.

See #46045.


git-svn-id: https://develop.svn.wordpress.org/trunk@45116 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Felix Arntz
2019-04-05 15:52:39 +00:00
parent dca58d725e
commit 075a85c05e
3 changed files with 12 additions and 4 deletions

View File

@@ -1444,7 +1444,9 @@ function wp_start_scraping_edited_file_errors() {
echo "###### wp_scraping_result_end:$key ######";
die();
}
define( 'WP_SANDBOX_SCRAPING', true );
if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) {
define( 'WP_SANDBOX_SCRAPING', true );
}
register_shutdown_function( 'wp_finalize_scraping_edited_file_errors', $key );
}