Changeset 52697
- Timestamp:
- 02/09/2022 01:20:49 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-template.php
r52610 r52697 48 48 function locate_block_template( $template, $type, array $templates ) { 49 49 global $_wp_current_template_content; 50 51 if ( ! current_theme_supports( 'block-templates' ) ) { 52 return $template; 53 } 50 54 51 55 if ( $template ) { -
trunk/tests/phpunit/tests/block-template.php
r52308 r52697 19 19 parent::set_up(); 20 20 switch_theme( 'block-theme' ); 21 do_action( 'setup_theme' ); 21 22 } 22 23
Note: See TracChangeset
for help on using the changeset viewer.