From 08629eac7ed0e3fd433f2efb702d58f8f9bdc458 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Tue, 17 Jan 2023 12:46:53 +0100 Subject: [PATCH] Backport the changes to the site editor intialization --- 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 deb556a695768..016245a67709d 100644 --- a/src/wp-admin/site-editor.php +++ b/src/wp-admin/site-editor.php @@ -76,17 +76,8 @@ static function( $classes ) { '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 );