From d01055ab9a43f70fe6b903cebf90693b2a12e8af Mon Sep 17 00:00:00 2001 From: Andrew Serong <14988353+andrewserong@users.noreply.github.com> Date: Wed, 3 Aug 2022 13:35:48 +1000 Subject: [PATCH] Layout: Ensure defaultEditorStyles are still output if a Classic theme provides no editor styles and base layout styles are output --- lib/compat/wordpress-6.1/block-editor-settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/wordpress-6.1/block-editor-settings.php b/lib/compat/wordpress-6.1/block-editor-settings.php index 194b7717b449d8..13f0f3982f8571 100644 --- a/lib/compat/wordpress-6.1/block-editor-settings.php +++ b/lib/compat/wordpress-6.1/block-editor-settings.php @@ -83,7 +83,7 @@ function gutenberg_get_block_editor_settings( $settings ) { // If there is no `theme.json` file, ensure base layout styles are still available. $block_classes = array( 'css' => 'base-layout-styles', - '__unstableType' => 'theme', + '__unstableType' => 'base-layout', 'isGlobalStyles' => true, ); $actual_css = gutenberg_get_global_stylesheet( array( $block_classes['css'] ) );