diff --git a/lib/compat/wordpress-6.1/block-editor-settings.php b/lib/compat/wordpress-6.1/block-editor-settings.php index 3181329475df4f..fc99526eb10983 100644 --- a/lib/compat/wordpress-6.1/block-editor-settings.php +++ b/lib/compat/wordpress-6.1/block-editor-settings.php @@ -82,8 +82,8 @@ function gutenberg_get_block_editor_settings( $settings ) { } else { // If there is no `theme.json` file, ensure base layout styles are still available. $block_classes = array( - 'css' => 'base-layout-styles', - '__unstableType' => 'base-layout', + 'css' => 'styles', + '__unstableType' => 'base-styles', // setting this to something other than `theme` means that the editor will not consider these styles as part of "theme" styles. 'isGlobalStyles' => true, ); $actual_css = gutenberg_get_global_stylesheet( array( $block_classes['css'] ) ); diff --git a/lib/compat/wordpress-6.1/get-global-styles-and-settings.php b/lib/compat/wordpress-6.1/get-global-styles-and-settings.php index ccccdad9a814b9..686741162b5e52 100644 --- a/lib/compat/wordpress-6.1/get-global-styles-and-settings.php +++ b/lib/compat/wordpress-6.1/get-global-styles-and-settings.php @@ -84,9 +84,7 @@ function gutenberg_get_global_stylesheet( $types = array() ) { } $tree = WP_Theme_JSON_Resolver_Gutenberg::get_merged_data(); $supports_theme_json = WP_Theme_JSON_Resolver_Gutenberg::theme_has_support(); - if ( empty( $types ) && ! $supports_theme_json ) { - $types = array( 'variables', 'presets', 'base-layout-styles' ); - } elseif ( empty( $types ) ) { + if ( empty( $types ) ) { $types = array( 'variables', 'styles', 'presets' ); }