WordPress.org

Make WordPress Core

Opened 3 weeks ago

Last modified 2 weeks ago

#54407 new defect (bug)

Move CSS code that hides visibility and status for wp_navigation type posts from Gutenberg to Core

Reported by: antonvlasenko Owned by:
Milestone: 5.9 Priority: normal
Severity: normal Version:
Component: Editor Keywords: needs-patch
Focuses: Cc:

Description

The Gutenberg plugin currently contains CSS code that hides visibility and status for wp_navigation type posts. If and when the Gutenberg plugin is merged to Core, we need to move that CSS code from "gutenberg_hide_visibility_and_status_for_navigation_posts" function to the wp-admin/css/edit.css.

Change History (2)

#2 @noisysocks
2 weeks ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 5.9

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.

Note: See TracTickets for help on using tickets.