Skip to content

Commit 3fb4889

Browse files
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
1 parent 8fe92ac commit 3fb4889

3 files changed

Lines changed: 0 additions & 35 deletions

File tree

src/wp-includes/load.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -948,10 +948,6 @@ function wp_get_active_and_valid_themes() {
948948
return $themes;
949949
}
950950

951-
if ( ! wp_using_themes() ) {
952-
return $themes;
953-
}
954-
955951
if ( TEMPLATEPATH !== STYLESHEETPATH ) {
956952
$themes[] = STYLESHEETPATH;
957953
}

tests/phpunit/includes/bootstrap.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@
252252
if ( ! defined( 'WP_DEFAULT_THEME' ) ) {
253253
define( 'WP_DEFAULT_THEME', 'default' );
254254
}
255-
define( 'WP_USE_THEMES', true );
256255
$wp_theme_directories = array();
257256

258257
if ( file_exists( DIR_TESTDATA . '/themedir1' ) ) {

tests/phpunit/tests/load/wpGetActiveAndValidThemes.php

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)