From 74241b92054c3e5484086db6e2a0dcacc4af4f2b Mon Sep 17 00:00:00 2001 From: hellofromTonya Date: Thu, 26 Jan 2023 20:01:12 +0000 Subject: [PATCH] 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: * https://github.com/WordPress/gutenberg/pull/46212 Props ellatrix, alexstine, costdev, dgwyer, glendaviesnz, scruffian. Fixes #57549. Built from https://develop.svn.wordpress.org/trunk@55147 git-svn-id: http://core.svn.wordpress.org/trunk@54680 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/block-editor.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/block-editor.php b/wp-includes/block-editor.php index 1a5e8f6e2d..62ad62049c 100644 --- a/wp-includes/block-editor.php +++ b/wp-includes/block-editor.php @@ -495,6 +495,7 @@ function get_block_editor_settings( array $custom_settings, $block_editor_contex } $editor_settings['__unstableResolvedAssets'] = _wp_get_iframed_editor_assets(); + $editor_settings['__unstableIsBlockBasedTheme'] = wp_is_block_theme(); $editor_settings['localAutosaveInterval'] = 15; $editor_settings['disableLayoutStyles'] = current_theme_supports( 'disable-layout-styles' ); $editor_settings['__experimentalDiscussionSettings'] = array( diff --git a/wp-includes/version.php b/wp-includes/version.php index 6b100e7379..5857623b05 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55146'; +$wp_version = '6.2-alpha-55147'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.