From 491f5cec39cfe023e1cc5ed0defcf4602c592692 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 24 Aug 2014 17:57:16 +0000 Subject: [PATCH] Screen: Move editor scrolling screen option to the proper place. see [29336], see #28328. Built from https://develop.svn.wordpress.org/trunk@29588 git-svn-id: http://core.svn.wordpress.org/trunk@29362 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/screen.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/screen.php b/wp-admin/includes/screen.php index 7d07ac74e3..35f42671cb 100644 --- a/wp-admin/includes/screen.php +++ b/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 { -