diff --git a/src/wp-includes/block-template.php b/src/wp-includes/block-template.php
index de266c04f2..97ab4044ef 100644
a
|
b
|
function _add_template_loader_filters() { |
46 | 46 | * @return string The path to the Full Site Editing template canvas file, or the fallback PHP template. |
47 | 47 | */ |
48 | 48 | function locate_block_template( $template, $type, array $templates ) { |
| 49 | if ( ! current_theme_supports( 'block-templates' ) ) { |
| 50 | return $template; |
| 51 | } |
| 52 | |
49 | 53 | global $_wp_current_template_content; |
50 | 54 | |
51 | 55 | if ( $template ) { |