mirror of
git://develop.git.wordpress.org/
synced 2025-02-13 03:04:42 +01: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:
parent
185ad1e116
commit
165adab5e7
@ -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' );
|
||||
|
Loading…
x
Reference in New Issue
Block a user