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

fix prevent unwanted access of site-editor.php #48

Conversation

fabiankaegy
Copy link

Non block themes that support block-based template parts should only be allowed to access the site-editor.php page if the query parameter to access the template part editor is set correctly.

This fixes the issue that was found by @hellofromtonya here: WordPress#3234 (comment)

non block themes that support block based template parts should only be allowed to access the site-editor.php file if the query parameter to access the template part editor is set correctly
@hellofromtonya
Copy link

@Mamaduka I can confirm that this does resolve the issue I noted.

@Mamaduka Mamaduka merged commit 040c485 into Mamaduka:backport/site-editor-template-parts-mode Sep 15, 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