Editor: Add admin notice for Gutenberg block markup in content#11960
Editor: Add admin notice for Gutenberg block markup in content#11960Infinite-Null wants to merge 7 commits into
Conversation
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
https://core.trac.wordpress.org/ticket/65335
Summary
Adds a warning notice in the Classic Editor when the post content contains Gutenberg block markup (
<!-- wp:). Since block markup is stored inside HTML comments, the Visual tab may appear empty even though content still exists.Changes
edit-form-advanced.phpthat detects WordPress block syntax (<!-- wp:) in$post->post_contentwarningadmin notice usingwp_admin_notice()when block markup is found<form>element so it is visible without interrupting the editing flowBefore / After
Testing Instructions