From 0b2a7b380f4d8c2e91049f99007ee5aa9124d2a6 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Wed, 1 Mar 2023 16:17:18 +0000 Subject: [PATCH] Editor: Ensure Global styles values are reset in the site editor. This changeset fixes a bug by which the reset function of the global styles sidebar would not work as expected in the site editor. It reverts [54517] and adds related unit tests. Props oandregal, ntsekouras, youknowriad, hellofromTonya. Fixes #57824 See #56467 Built from https://develop.svn.wordpress.org/trunk@55448 git-svn-id: http://core.svn.wordpress.org/trunk@54981 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-theme-json-resolver.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-theme-json-resolver.php b/wp-includes/class-wp-theme-json-resolver.php index 2e6b7523b6..d352cbdcbf 100644 --- a/wp-includes/class-wp-theme-json-resolver.php +++ b/wp-includes/class-wp-theme-json-resolver.php @@ -559,7 +559,8 @@ class WP_Theme_JSON_Resolver { _deprecated_argument( __FUNCTION__, '5.9.0' ); } - $result = static::get_core_data(); + $result = new WP_Theme_JSON(); + $result->merge( static::get_core_data() ); if ( 'default' === $origin ) { $result->set_spacing_sizes(); return $result; diff --git a/wp-includes/version.php b/wp-includes/version.php index 6e43f7d503..185beae893 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta3-55447'; +$wp_version = '6.2-beta3-55448'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.