Bootstrap/Load: Revert [55890].

As it turns out, WP-CLI *also* doesn't `define( 'WP_USE_THEMES', true );`, which means an active theme's `functions.php` isn't loaded by default and causes a backwards compatibility break.

See #57928.


git-svn-id: https://develop.svn.wordpress.org/trunk@55891 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daniel Bachhuber
2023-06-07 20:27:17 +00:00
parent 8fe92ac137
commit 3fb4889b1f
3 changed files with 0 additions and 35 deletions

View File

@@ -252,7 +252,6 @@ $phpmailer = new MockPHPMailer( true );
if ( ! defined( 'WP_DEFAULT_THEME' ) ) {
define( 'WP_DEFAULT_THEME', 'default' );
}
define( 'WP_USE_THEMES', true );
$wp_theme_directories = array();
if ( file_exists( DIR_TESTDATA . '/themedir1' ) ) {