From 50706e736d1f618f9ecc81a6c7adb164b6e00cbd Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 24 Aug 2014 17:56:25 +0000 Subject: [PATCH] Screen: Move editor scrolling screen option to the proper place. see [29336], see #28328. git-svn-id: https://develop.svn.wordpress.org/trunk@29588 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/screen.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/includes/screen.php b/src/wp-admin/includes/screen.php index 7d07ac74e3..35f42671cb 100644 --- a/src/wp-admin/includes/screen.php +++ b/src/wp-admin/includes/screen.php @@ -967,10 +967,16 @@ final class WP_Screen { $show_screen = ! empty( $wp_meta_boxes[ $this->id ] ) || $columns || $this->get_option( 'per_page' ); - switch ( $this->id ) { + switch ( $this->base ) { case 'widgets': $this->_screen_settings = '

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

\n"; break; + case 'post' : + $expand = ''; + $this->_screen_settings = $expand; + break; default: $this->_screen_settings = ''; break; @@ -1110,11 +1116,6 @@ final class WP_Screen { -