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

Avoid access to theme files directly #2071

Open
kaushikasomaiya opened this issue Nov 14, 2022 · 3 comments
Open

Avoid access to theme files directly #2071

kaushikasomaiya opened this issue Nov 14, 2022 · 3 comments
Assignees

Comments

@kaushikasomaiya
Copy link

kaushikasomaiya commented Nov 14, 2022

Currently accessing theme files like index.php via direct URL results into fatal error:

Fatal error: Uncaught Error: Call to undefined function get_header() in /Applications/MAMP/htdocs/sites/wp-8831821/wp-content/themes/storefront/index.php

This should be silent like other themes (Ex: 2022)

Submitting as an enhancement request.

5709039-zen

@gigitux gigitux self-assigned this Nov 14, 2022
@gigitux
Copy link
Contributor

gigitux commented Nov 14, 2022

Could you share a specific use-case so that I can replicate it in my environment? Thanks!

@kaushikasomaiya
Copy link
Author

@gigitux You can install Storefront, and try to access the following URL in your browser: yoursite.com/wp-content/themes/storefront/index.php

I don't see any issues with this though, which is why I filed as an enhancement request.

@gigitux
Copy link
Contributor

gigitux commented Nov 14, 2022

Thanks! I'm able to reproduce it!

I don't see any issues with this though, which is why I filed as an enhancement request.

Thanks for the clarification. Since that Storefront is in maintenance mode, at least for now, we will not work on this issue.

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

No branches or pull requests

2 participants