mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Editor: Hide Screen Options tab from block editor
The block editor provides its own interface for managing screen options, so we can safely hide Screen Options tab found in the top right of the page. Props aduth. See #46157. git-svn-id: https://develop.svn.wordpress.org/trunk@49040 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -32,6 +32,11 @@ $current_screen->is_block_editor( true );
|
||||
*/
|
||||
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
|
||||
|
||||
/*
|
||||
* Block editor implements its own Options menu for toggling Document Panels.
|
||||
*/
|
||||
add_filter( 'screen_options_show_screen', '__return_false' );
|
||||
|
||||
wp_enqueue_script( 'heartbeat' );
|
||||
wp_enqueue_script( 'wp-edit-post' );
|
||||
wp_enqueue_script( 'wp-format-library' );
|
||||
|
||||
Reference in New Issue
Block a user