Skip to content

Commit

Permalink
Layout: Ensure defaultEditorStyles are still output if a Classic them…
Browse files Browse the repository at this point in the history
…e provides no editor styles and base layout styles are output (#42906)
  • Loading branch information
andrewserong committed Aug 3, 2022
1 parent 6004cb1 commit bece57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.1/block-editor-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ) );
Expand Down

0 comments on commit bece57e

Please sign in to comment.