-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Full Site Editing: Fix template parts loading on frontend #28752
Conversation
Size Change: 0 B Total Size: 1.37 MB ℹ️ View Unchanged
|
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 code change looks good to me.
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.
Works well for me, not sure how we didn't catch this before, but better late than dot release!
I don't think we need to backport this one to Core as FSE is not enabled in WordPress 5.7. |
Description
Template parts are not loading on the frontend of full site editing enabled sites when the block themes live in a nested directory relative to
wp-content/themes
. For example, when we place tt1-blocks inwp-content/themes/test/tt1-blocks
instead of in the themes rootwp-content/themes/tt1-blocks
, template parts don't load.How has this been tested?
Before applying this PR:
wp-content/themes
..wp-env.override.json
. This creates a copy of the locally installed TT1 theme in a "test" subdirectory in the WordPress volume.npx wp-env start
Apply this PR:
Screenshots
Before
After
Types of changes
Bug fix for #28753
Checklist: