WordPress.org

Make WordPress Core

Ticket #23239: 23239.patch

File 23239.patch, 963 bytes (added by SergeyBiryukov, 15 months ago)
  • wp-admin/includes/screen.php

     
    898898 
    899899                $show_screen = ! empty( $wp_meta_boxes[ $this->id ] ) || $columns || $this->get_option( 'per_page' ); 
    900900 
    901                 $this->_screen_settings = apply_filters( 'screen_settings', '', $this ); 
    902  
    903901                switch ( $this->id ) { 
    904902                        case 'widgets': 
    905903                                $this->_screen_settings = '<p><a id="access-on" href="widgets.php?widgets-access=on">' . __('Enable accessibility mode') . '</a><a id="access-off" href="widgets.php?widgets-access=off">' . __('Disable accessibility mode') . "</a></p>\n"; 
    906904                                break; 
     905                        default: 
     906                                $this->_screen_settings = ''; 
     907                                break; 
    907908                } 
    908909 
     910                $this->_screen_settings = apply_filters( 'screen_settings', $this->_screen_settings, $this ); 
     911 
    909912                if ( $this->_screen_settings || $this->_options ) 
    910913                        $show_screen = true; 
    911914