Make WordPress Core


Ignore:
Timestamp:
05/25/2021 02:19:14 PM (3 years ago)
Author:
youknowriad
Message:

Block Editor: Introduce block templates for classic themes.

With this patch, users will be able to create custom block based templates
and assign them to specific pages/posts.

Themes can also opt-out of this feature

Props bernhard-reiter, carlomanf.
Fixes #53176.

File:
1 edited

Legend:

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

    r50996 r51003  
    221221    '__experimentalBlockPatterns'          => WP_Block_Patterns_Registry::get_instance()->get_all_registered(),
    222222    '__experimentalBlockPatternCategories' => WP_Block_Pattern_Categories_Registry::get_instance()->get_all_registered(),
     223    'supportsTemplateMode'                 => current_theme_supports( 'block-templates' ),
    223224
    224225    // Whether or not to load the 'postcustom' meta box is stored as a user meta
Note: See TracChangeset for help on using the changeset viewer.