mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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 git-svn-id: https://develop.svn.wordpress.org/trunk@55448 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user