Changeset 51199 for trunk/src/wp-includes/theme-templates.php
- Timestamp:
- 06/22/2021 09:58:32 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme-templates.php
r51168 r51199 174 174 } 175 175 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 */ 182 function 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.