[wp-trac] [WordPress Trac] #54407: Move CSS code that hides visibility and status for wp_navigation type posts from Gutenberg to Core

WordPress Trac noreply at wordpress.org
Mon Nov 15 04:04:58 UTC 2021


#54407: Move CSS code that hides visibility and status for wp_navigation type posts
from Gutenberg to Core
---------------------------+---------------------
 Reporter:  antonvlasenko  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.9
Component:  Editor         |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:
---------------------------+---------------------
Changes (by noisysocks):

 * keywords:   => needs-patch
 * milestone:  Awaiting Review => 5.9


Comment:

 The Gutenberg plugin is forced to use CSS to do this but there's no such
 limitation in Core.

 We should fix this by modifying `wp-admin/includes/meta-boxes.php`. Either
 by hardcoding a check for `wp_navigation`, or, ideally, by adding two new
 hooks which `wp-includes/defalt-filters.php` uses similarly to
 `_disable_block_editor_for_navigation_post_type`.

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


More information about the wp-trac mailing list