-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Template Parts not displaying when inside patterns #55202
Comments
@ockham, it is very likely that we missed adding the replacement for The way to validate that would be to replace the following code: to look more like: |
It works! WordPress/wordpress-develop#5450 |
It looks like an error similar to this issue has been reported. However, these issues were reported a long time ago and may not be directly related... |
@t-hamano, thank you for posting references to other tickets. It would be great to test them with all the latest changes as it seems that they could get resolved, too. |
I believe this has been fixed with WordPress/wordpress-develop#5450, so we can probably close this. |
What problem does this address?
When a template part is inside a pattern block, it appears missing on the frontend. To reproduce:
Template part has been deleted or is unavailable: header
What is your proposed solution?
This seems to have been introduced in #54651
The problem seems to be that although the template parts are given theme slugs when they are processed by
traverse_and_serialize_blocks
, when the block code itself comes to process the block the theme slug is missing. I can't work out why.cc @gziolo as you worked on #54651 :)
The text was updated successfully, but these errors were encountered: