mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -859,7 +859,9 @@ function resume_theme( $theme, $redirect = '' ) {
|
||||
|
||||
// Load the theme's functions.php to test whether it throws a fatal error.
|
||||
ob_start();
|
||||
define( 'WP_SANDBOX_SCRAPING', true );
|
||||
if ( ! defined( 'WP_SANDBOX_SCRAPING' ) ) {
|
||||
define( 'WP_SANDBOX_SCRAPING', true );
|
||||
}
|
||||
include $functions_path;
|
||||
ob_clean();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user