WordPress.org

Make WordPress Core

Changeset 23503


Ignore:
Timestamp:
02/28/13 07:40:11 (14 months ago)
Author:
SergeyBiryukov
Message:

Don't override filtered screen options on Widgets screen. props bradyvercher. fixes #23239.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/screen.php

    r22018 r23503  
    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; 
    907         } 
     905            default: 
     906                $this->_screen_settings = ''; 
     907                break; 
     908        } 
     909 
     910        $this->_screen_settings = apply_filters( 'screen_settings', $this->_screen_settings, $this ); 
    908911 
    909912        if ( $this->_screen_settings || $this->_options ) 
Note: See TracChangeset for help on using the changeset viewer.