From c79cef46546290663c14e4db874a73b726815c4c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 28 Feb 2013 07:40:11 +0000 Subject: [PATCH] Don't override filtered screen options on Widgets screen. props bradyvercher. fixes #23239. git-svn-id: https://develop.svn.wordpress.org/trunk@23503 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/screen.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/screen.php b/wp-admin/includes/screen.php index 4a409e8c68..a2ff801930 100644 --- a/wp-admin/includes/screen.php +++ b/wp-admin/includes/screen.php @@ -898,14 +898,17 @@ final class WP_Screen { $show_screen = ! empty( $wp_meta_boxes[ $this->id ] ) || $columns || $this->get_option( 'per_page' ); - $this->_screen_settings = apply_filters( 'screen_settings', '', $this ); - switch ( $this->id ) { case 'widgets': $this->_screen_settings = '

' . __('Enable accessibility mode') . '' . __('Disable accessibility mode') . "

\n"; break; + default: + $this->_screen_settings = ''; + break; } + $this->_screen_settings = apply_filters( 'screen_settings', $this->_screen_settings, $this ); + if ( $this->_screen_settings || $this->_options ) $show_screen = true;