Skip to content

Commit e2b5177

Browse files
Editor: Add is block theme setting to get_block_editor_settings().
The block editor's iframe needs to know if the theme is a block theme. This changeset adds a setting to `get_block_editor_settings()`. Reference: * WordPress/gutenberg#46212 Props ellatrix, alexstine, costdev, dgwyer, glendaviesnz, scruffian. Fixes #57549. git-svn-id: https://develop.svn.wordpress.org/trunk@55147 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1df9b8a commit e2b5177

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/wp-includes/block-editor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ function get_block_editor_settings( array $custom_settings, $block_editor_contex
495495
}
496496

497497
$editor_settings['__unstableResolvedAssets'] = _wp_get_iframed_editor_assets();
498+
$editor_settings['__unstableIsBlockBasedTheme'] = wp_is_block_theme();
498499
$editor_settings['localAutosaveInterval'] = 15;
499500
$editor_settings['disableLayoutStyles'] = current_theme_supports( 'disable-layout-styles' );
500501
$editor_settings['__experimentalDiscussionSettings'] = array(

0 commit comments

Comments
 (0)