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

@@ -948,10 +948,6 @@ function wp_get_active_and_valid_themes() {
return $themes;
}
if ( ! wp_using_themes() ) {
return $themes;
}
if ( TEMPLATEPATH !== STYLESHEETPATH ) {
$themes[] = STYLESHEETPATH;
}