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

Revert "Patterns: Don't inject theme attribute on frontend." #5509

Closed

Conversation

ockham
Copy link
Contributor

@ockham ockham commented Oct 17, 2023

It was found that Template Part blocks were broken in the Site Editor, showing the Template part has been deleted or is unavailable message, due to a missing theme attribute.

This bug seems to have been introduced by [56896], whose goal was to only inject that attribute into the REST API but not on the frontend, in order to improve performance. It has been demonstrated locally that reverting that changeset fixes the bug.

This reverts commit 33870e1.

Trac ticket: https://core.trac.wordpress.org/ticket/59629


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.

@ockham ockham self-assigned this Oct 17, 2023
@ockham ockham requested a review from gziolo October 17, 2023 14:02
@ockham ockham marked this pull request as ready for review October 17, 2023 14:16
@ockham
Copy link
Contributor Author

ockham commented Oct 17, 2023

Committed to Core in https://core.trac.wordpress.org/changeset/56960 😊

@ockham ockham closed this Oct 17, 2023
@ockham ockham deleted the fix/broken-template-parts-in-editor branch October 17, 2023 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants