Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update check for index.php #424

Closed
wants to merge 3 commits into from
Closed

Conversation

jffng
Copy link
Contributor

@jffng jffng commented Jun 2, 2022

Addresses #422. This PR updates the theme check to check for both index.php or templates/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!)

@carolinan
Copy link
Collaborator

Out of the two pull requests for this issue, I prefer this solution, but we also need to check for block-templates/index.html.

@acosmin
Copy link
Collaborator

acosmin commented Jun 18, 2022

@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.

@carolinan
Copy link
Collaborator

Got it, that makes perfect sense.

@jffng jffng closed this Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants