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.

Built from https://develop.svn.wordpress.org/trunk@49040


git-svn-id: http://core.svn.wordpress.org/trunk@48802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
noisysocks 2020-09-24 03:00:08 +00:00
parent c10acd850e
commit 41b456eca9
2 changed files with 6 additions and 1 deletions

View File

@ -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' );

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.6-alpha-49039';
$wp_version = '5.6-alpha-49040';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.