From 0d0812c52d73362c5a0430882c46924198a0fae0 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Tue, 7 Feb 2023 07:14:11 +0000 Subject: [PATCH] Site Editor: Backport site editor intialization changes from Gutenberg 15.1 The site editor has been updated to not require the "home template" setting. This removes the key from the settings passed to the frontend. Props flixos90, hellofromtonya, ntsekouras. Fixes #57480. git-svn-id: https://develop.svn.wordpress.org/trunk@55247 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/site-editor.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/wp-admin/site-editor.php b/src/wp-admin/site-editor.php index deb556a695..016245a677 100644 --- a/src/wp-admin/site-editor.php +++ b/src/wp-admin/site-editor.php @@ -76,17 +76,8 @@ $custom_settings = array( 'defaultTemplatePartAreas' => get_allowed_block_template_part_areas(), 'supportsLayout' => wp_theme_has_theme_json(), 'supportsTemplatePartsMode' => ! wp_is_block_theme() && current_theme_supports( 'block-template-parts' ), - '__unstableHomeTemplate' => $home_template, ); -/** - * Home template resolution is not needed when block template parts are supported. - * Set the value to `true` to satisfy the editor initialization guard clause. - */ -if ( $custom_settings['supportsTemplatePartsMode'] ) { - $custom_settings['__unstableHomeTemplate'] = true; -} - // Add additional back-compat patterns registered by `current_screen` et al. $custom_settings['__experimentalAdditionalBlockPatterns'] = WP_Block_Patterns_Registry::get_instance()->get_all_registered( true ); $custom_settings['__experimentalAdditionalBlockPatternCategories'] = WP_Block_Pattern_Categories_Registry::get_instance()->get_all_registered( true );