Closed jffng closed 2 years ago
Out of the two pull requests for this issue, I prefer this solution, but we also need to check for block-templates/index.html.
@carolinan this one can't possibly work, it will return true if you have index.php in any of the theme folders and the $filenames
does not include the templates
path/folder, it will just return index.html.
Got it, that makes perfect sense.
Addresses #422. This PR updates the theme check to check for both
index.php
ortemplates/index.html
, since WordPress themes are no longer required to have a index.php file: https://core.trac.wordpress.org/changeset/52940(Started this PR at WCEU Contributor Day, I haven't had a chance to test this yet!)