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 Grapher WP ReusableBlock resolver bug #2706

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Conversation

ikesau
Copy link
Member

@ikesau ikesau commented Oct 5, 2023

Our WP article "Loneliness and Social Connection" (id: 29766) was referring to a reusable block that doesn't exist <!-- wp:block {"ref":24797} /-->

This surfaced a bug with the grapher sync code where this tag was getting resolved to the entire text, which then caused a recursion until the recursionLevelsRemaining condition tripped.

Now reusable block tags that have IDs that we can't resolve, simply get replaced with ""

@ikesau ikesau requested a review from danyx23 October 5, 2023 21:20
Copy link
Contributor

@danyx23 danyx23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@ikesau ikesau merged commit 1a63add into master Oct 10, 2023
@ikesau ikesau deleted the entry-emulator-length branch October 10, 2023 13:47
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.

2 participants