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

See #46045.

Built from https://develop.svn.wordpress.org/trunk@45116


git-svn-id: http://core.svn.wordpress.org/trunk@44925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Felix Arntz
2019-04-05 15:53:50 +00:00
parent 5d2c761568
commit 52354f3f0b
4 changed files with 13 additions and 5 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 );
}