Make WordPress Core

Changeset 49040


Ignore:
Timestamp:
09/24/2020 02:58:17 AM (4 years ago)
Author:
noisysocks
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-blocks.php

    r48841 r49040  
    3232 */
    3333remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
     34
     35/*
     36 * Block editor implements its own Options menu for toggling Document Panels.
     37 */
     38add_filter( 'screen_options_show_screen', '__return_false' );
    3439
    3540wp_enqueue_script( 'heartbeat' );
Note: See TracChangeset for help on using the changeset viewer.