Skip to content

Commit

Permalink
add missing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Nov 19, 2021
1 parent d200e5e commit 3f76cd9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/use-setting/index.js
Expand Up @@ -119,7 +119,7 @@ export default function useSetting( path ) {
return (
experimentalFeaturesResult.user ??
experimentalFeaturesResult.theme ??
experimentalFeaturesResult.core
experimentalFeaturesResult.default
);
}
return experimentalFeaturesResult;
Expand Down
Expand Up @@ -60,7 +60,7 @@ function getPresetsDeclarations( blockPresets = {} ) {
PRESET_METADATA,
( declarations, { path, valueKey, cssVarInfix } ) => {
const presetByOrigin = get( blockPresets, path, [] );
[ 'core', 'theme', 'user' ].forEach( ( origin ) => {
[ 'default', 'theme', 'user' ].forEach( ( origin ) => {
if ( presetByOrigin[ origin ] ) {
presetByOrigin[ origin ].forEach( ( value ) => {
declarations.push(
Expand Down Expand Up @@ -94,7 +94,7 @@ function getPresetsClasses( blockSelector, blockPresets = {} ) {
}

const presetByOrigin = get( blockPresets, path, [] );
[ 'core', 'theme', 'user' ].forEach( ( origin ) => {
[ 'default', 'theme', 'user' ].forEach( ( origin ) => {
if ( presetByOrigin[ origin ] ) {
presetByOrigin[ origin ].forEach( ( { slug } ) => {
classes.forEach( ( { classSuffix, propertyName } ) => {
Expand Down
2 changes: 1 addition & 1 deletion phpunit/class-wp-theme-json-test.php
Expand Up @@ -553,7 +553,7 @@ public function test_get_stylesheet_preset_values_are_marked_as_important() {
),
),
),
'core'
'default'
);

$this->assertEquals(
Expand Down

0 comments on commit 3f76cd9

Please sign in to comment.