-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Buttons created with Gutenberg enabled creates block validation errors when Gutenberg is deactivated #41996
Comments
Probably related to #40260. The Button block will need a deprecation. cc @scruffian. |
I don't think a block deprecation would be possible though, as it would need to be added to an already released version of WordPress core. TBH, it's possible to get this issue with any block whenever content is created in a newer block editor and then loaded in an older one. |
I believe this issue is also related to #41140. This is the list of blocks to which
|
It's like @talldan said unlikely to have a solution via a deprecation and also hard to solve: content created with newer editors can become invalid in older editors for editing. Gutenberg guarantees the content itself is independent of Gutenberg and via it's universal format and invisible markup does not depend on WordPress to be consumed. But editing blocks in older versions will be problematic. I think a cool thing would be if we can detect that the user needs a newer editor and inform them. |
Description
Originally reported by @kafleg:
Buttons created with Gutenberg active, causes a block validation error in the editor because the miss match of CSS classes when Gutenberg is deactivated:
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.0
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: