[wp-trac] [WordPress Trac] #65335: Show a warning message about a commented-out Gutenberg block in the Classic Editor.

WordPress Trac noreply at wordpress.org
Mon May 25 07:23:12 UTC 2026


#65335: Show a warning message about a commented-out Gutenberg block in the Classic
Editor.
-----------------------------+------------------------------
 Reporter:  blackstar1991    |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Editor           |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  ui, ui-copy
-----------------------------+------------------------------
Changes (by sabernhardt):

 * focuses:  ui, accessibility, css => ui, ui-copy
 * component:  General => Editor
 * version:  7.0 =>


Comment:

 I suggest adding an admin notice, immediately before the `<form` element,
 in `edit-form-advanced.php`.

 {{{
 if ( str_contains( $post->post_content, '<!-- wp:' ) ) :
         wp_admin_notice(
                 __( 'This content includes blocks, and some of the block
 content might not display in the Visual editor. Please review the content
 carefully before overwriting or deleting it.' ),
                 array(
                         'type' => 'warning',
                 )
         );
 endif;
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/65335#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list