From f08039702ecdfeaba850c91bc0e3008272104509 Mon Sep 17 00:00:00 2001 From: danielbachhuber Date: Wed, 7 Jun 2023 20:29:19 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@55891 git-svn-id: http://core.svn.wordpress.org/trunk@55403 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/load.php | 4 ---- wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/wp-includes/load.php b/wp-includes/load.php index 9780519856..02bf0299bf 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -948,10 +948,6 @@ function wp_get_active_and_valid_themes() { return $themes; } - if ( ! wp_using_themes() ) { - return $themes; - } - if ( TEMPLATEPATH !== STYLESHEETPATH ) { $themes[] = STYLESHEETPATH; } diff --git a/wp-includes/version.php b/wp-includes/version.php index c9aafc73cb..caa3b74019 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55890'; +$wp_version = '6.3-alpha-55891'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.