diff --git src/wp-includes/block-template-utils.php src/wp-includes/block-template-utils.php
index cf0c4af12e..ce44c728ea 100644
|
|
function get_block_templates( $query = array(), $template_type = 'wp_template' ) |
978 | 978 | true |
979 | 979 | ); |
980 | 980 | $fits_slug_query = |
981 | | ! isset( $query['slug__in'] ) || in_array( $template_file['slug'], $query['slug__in'], true ); |
| 981 | ! isset( $query['slug__in'] ) || in_array( str_replace( '\\', '/', $template_file['slug'] ), $query['slug__in'], true ); |
982 | 982 | $fits_area_query = |
983 | 983 | ! isset( $query['area'] ) || $template_file['area'] === $query['area']; |
984 | 984 | $should_include = $is_not_custom && $fits_slug_query && $fits_area_query; |