Group blocks get corrupted after upgrade to 15.1 if they had an HTML anchor set #48128
Labels
Backwards Compatibility
Issues or PRs that impact backwards compatability
[Block] Group
Affects the Group Block (and row, stack and grid variants)
[Type] Bug
An existing feature does not function as intended
[Type] Regression
Related to a regression in the latest release
Description
After upgrading to version 15.1 of the Gutenberg plugin,
core/group
blocks with HTML anchors lose all their inner blocks upon saving the editor.Step-by-step reproduction instructions
core/group
block to a page using Gutenberg 15.0.1 or earlier.Update
.Screenshots, screen recording, code snippet
Here is an example of the
post_content
value in the database for a test page created with Gutenberg 15.0.1:The page content itself looks like this: https://d.pr/i/hxLPJT
After upgrading to Gutenberg 15.1 (confirmed also with 15.1.1), when opening the page in the editor, there are these two entries in the console log: https://d.pr/i/vRLLLY
If I change nothing on the page but simply click on
Update
, the page content will look like this: https://d.pr/i/7CSZjO (no moreHeading inside group
).If I then reload the Gutenberg editor for that page, there is this error in the console log: https://d.pr/i/3v0uBI and the group itself looks like this: https://d.pr/i/OLUPsU
The
post_content
value in the database is now:Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: