-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Feature: Block-based template parts for Classic themes #3258
Feature: Block-based template parts for Classic themes #3258
Conversation
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
@fabiankaegy Would you mind approving this PR? 😊 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating the PR 🚀
I'm not sure whether I have sufficient access to actually approve it. But from my perspective this is ready to go :) |
Retested per my Test Report. Confirmed @fabiankaegy resolves the white screen issue of attempting to access Testing Report Env:
Results: Classic theme - TT1, TT0
Block theme - TT2, Frost
Themes with block-based templates part enabled
Observations:
Fixed ✅ Now when attempting to go directly to
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The PR works as expected, minus the one test point that is dependent upon package updates (i.e. which will be retested once updates are backported).
- The PR meets Core's coding standards.
Prepping the commit
Observation:
There are a few optimizations to explore, e.g. instead of invoking current_theme_supports()
et al repeatedly within the same file. However these are out-of-scope for this PR.
Thank you everyone for your contributions! Committed via https://core.trac.wordpress.org/ticket/56467. |
Fork of @Mamaduka's #3234, to apply this small fix.
Quoting that PR's description:
For any other details, please see the original PR.
(@Mamaduka is AFK and gave me permission to fork his PR via DM.)
Gutenberg tracking issue: WordPress/gutenberg#43440
Trac ticket: https://core.trac.wordpress.org/ticket/56467
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.