Make WordPress Core

Changeset 55247


Ignore:
Timestamp:
02/07/2023 07:14:11 AM (16 months ago)
Author:
youknowriad
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/site-editor.php

    r55086 r55247  
    7777    'supportsLayout'            => wp_theme_has_theme_json(),
    7878    'supportsTemplatePartsMode' => ! wp_is_block_theme() && current_theme_supports( 'block-template-parts' ),
    79     '__unstableHomeTemplate'    => $home_template,
    8079);
    81 
    82 /**
    83  * Home template resolution is not needed when block template parts are supported.
    84  * Set the value to `true` to satisfy the editor initialization guard clause.
    85  */
    86 if ( $custom_settings['supportsTemplatePartsMode'] ) {
    87     $custom_settings['__unstableHomeTemplate'] = true;
    88 }
    8980
    9081// Add additional back-compat patterns registered by `current_screen` et al.
Note: See TracChangeset for help on using the changeset viewer.