Closed Log1x closed 7 months ago
Block templates should only be prioritized when there is a index.html (see: https://developer.wordpress.org/reference/classes/wp_theme/is_block_theme/)
index.html
Fixes potential issues like https://discourse.roots.io/t/acorn-v4-1-1-released/26905/2
Looking back at the code on #314 in light of the issue reported above, things make a little more sense to me now.
I have reimplemented @dsturm's original approach. Apologies for the oversight.
Block templates should only be prioritized when there is a
index.html
(see: https://developer.wordpress.org/reference/classes/wp_theme/is_block_theme/)Fixes potential issues like https://discourse.roots.io/t/acorn-v4-1-1-released/26905/2