From ccd6e6aeec8c5765fe42aad4dc341c20a315cd16 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: http://core.svn.wordpress.org/trunk@23503 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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;