Make WordPress Core


Ignore:
Timestamp:
06/22/2021 09:58:32 AM (3 years ago)
Author:
jorgefilipecosta
Message:

Block Editor: Package updates for Beta 3.

The commit updates the WordPress packages for beta 3.

Props nosolosw, noisysocks, youknowriad.
See #53397.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme-templates.php

    r51168 r51199  
    174174}
    175175
    176 // By default, themes support block templates.
    177 add_theme_support( 'block-templates' );
     176/**
     177 * Enable the block templates (editor mode) for themes with theme.json by default.
     178 *
     179 * @access private
     180 * @since 5.8.0
     181 */
     182function wp_enable_block_templates() {
     183    if ( WP_Theme_JSON_Resolver::theme_has_support() ) {
     184        add_theme_support( 'block-templates' );
     185    }
     186}
Note: See TracChangeset for help on using the changeset viewer.