-
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
Block invalidation error for pullquote block resulting in missing paragraph/text content #45562
Comments
Same issue here. Seems a pretty major bug for a core block to be unusable with Wordpress 6.1. Is the only option to downgrade WordPress for the time being? |
Ah, yes, that definitely looks like the problem. Just to expand, my client's case is slightly different from the example described above - no cite, but simply two or more paragraphs in the pullquote. The invalidation is due to the save function deleting all but the first paragraph. It sounds like this was intentionally changed so that pullquotes can no longer have multiple paragraphs, but given this was possible in the past, having them all break probably isn't the best way forward. (Changing all paragraph breaks to a single line break, which appears to be what the deprecation was trying to do albeit unsuccessfully, would result in quite a visual change too..) |
@griffbrad are you able to provide some block markup that fails for you? I tried with:
and:
and the block was migrated ok when opened in 6.1 |
Looking more closely at the original report, it looks like the user actually had an image within their citation:
|
My example may have some connection with text color / a block ID being in the editor (not sure how the block ID got there, but it's in almost all of them).
|
Thanks for the extra detail @smerriman & @griffbrad, will take another look at it this afternoon |
I can confirm that in 6.0.3 without GB plugin the following block code is valid:
with the latest trunk GB installed it invalidates unless the |
And just to iterate, with the block |
prior to #43210 the block markup with the |
It looks like this may have stalled for a little while - @glendaviesnz @ellatrix is there anything to move this along? |
Description
On a site with a lot of pullquotes on existing pages, loading posts with that content in the editor results in a block invalidation error and the paragraphs embedded in the saved content being stripped with the error "Block validation: Expected tag name 'cite', instead saw 'p'." rendered in the console.
Step-by-step reproduction instructions
figure > blockquote > p, cite
.Screenshots, screen recording, code snippet
Environment info
Gutenberg version: 14.4
WP version: 6.1
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: