WordPress.org

Make WordPress Core

Changeset 52409


Ignore:
Timestamp:
12/22/2021 12:58:42 PM (4 weeks ago)
Author:
SergeyBiryukov
Message:

Editor: Add missing default template areas to the post/page editor settings.

This ensures that default template area settings are displayed when editing a template in the post/page editor, which previously got lost during backporting for 5.9.

Follow-up to [52232].

Props Mamaduka, costdev, gziolo.
Fixes #54679.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-blocks.php

    r52231 r52409  
    230230}
    231231
     232if ( wp_is_block_theme() && $editor_settings['supportsTemplateMode'] ) {
     233    $editor_settings['defaultTemplatePartAreas'] = get_allowed_block_template_part_areas();
     234}
     235
    232236/**
    233237 * Scripts
Note: See TracChangeset for help on using the changeset viewer.