Make WordPress Core


Ignore:
Timestamp:
03/01/2023 04:15:27 PM (16 months ago)
Author:
audrasjb
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json-resolver.php

    r55273 r55448  
    560560        }
    561561
    562         $result = static::get_core_data();
     562        $result = new WP_Theme_JSON();
     563        $result->merge( static::get_core_data() );
    563564        if ( 'default' === $origin ) {
    564565            $result->set_spacing_sizes();
Note: See TracChangeset for help on using the changeset viewer.