Changeset 52347
- Timestamp:
- 12/09/2021 09:54:13 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme-templates.php
r52303 r52347 212 212 */ 213 213 function wp_enable_block_templates() { 214 if ( WP_Theme_JSON_Resolver::theme_has_support() ) {214 if ( wp_is_block_theme() || WP_Theme_JSON_Resolver::theme_has_support() ) { 215 215 add_theme_support( 'block-templates' ); 216 216 }
Note: See TracChangeset
for help on using the changeset viewer.