mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 11:44:33 +00:00
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:
@@ -948,10 +948,6 @@ function wp_get_active_and_valid_themes() {
|
||||
return $themes;
|
||||
}
|
||||
|
||||
if ( ! wp_using_themes() ) {
|
||||
return $themes;
|
||||
}
|
||||
|
||||
if ( TEMPLATEPATH !== STYLESHEETPATH ) {
|
||||
$themes[] = STYLESHEETPATH;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user