-
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
Fix content loss for group block #30460
Conversation
Size Change: 0 B Total Size: 1.42 MB ℹ️ View Unchanged
|
Tagging #30461 as a (possibly) more complete issue description. Happy to test once this is ready! |
f405050
to
69bfcee
Compare
Ok this looks to be working for me. @jeremyfelt mind testing a bit? thanks |
Things are looking good for me. My original content is back in order and I've attempted to break things by nesting even more groups. All of the groups appear to have their inner container inserted when output and none are missing. I am not a regex expert, so I'll leave that review to others. :) Thanks for the quick fix, @youknowriad! |
All the merit goes to @ockham on this one |
Thanks for testing, folks! It might be a bit safer to add back the The I'll add back the |
@ockham The latest change is working for me in production (where I've sadly let PHP 7.0 be 🤦🏻). I've switched my local environment back to PHP 7.4, so I can't test more thoroughly right now, but things generally look good! |
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.
Okay, I think we're good to go here. We have confirmation that content is no longer broken by this; have repro'd in simplified test cases; and the changes make sense overall.
e2e Test Admin - 4 is failing because of an unrelated
I'll go ahead and merge. |
Co-authored-by: Bernie Reiter <[email protected]>
Cherry-picked to |
closes #30461
In #30443 (comment) it was reported that in Gutenberg 10.3, potential content loss can happen in some situations when using the group block with a lot of nesting.
This PR is an attempt to solve that