X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/0461a5f2e55c8d5f1fde96ca2e83117152573c7d..9e77185fafaf4e60e2b73821e0e4b9b1a11fb85f:/wp-admin/includes/screen.php?ds=sidebyside diff --git a/wp-admin/includes/screen.php b/wp-admin/includes/screen.php index 7d4ec881..35f42671 100644 --- a/wp-admin/includes/screen.php +++ b/wp-admin/includes/screen.php @@ -34,7 +34,7 @@ function get_column_headers( $screen ) { * * @param array $columns An array of column headers. Default empty. */ - $column_headers[ $screen->id ] = apply_filters( 'manage_' . $screen->id . '_columns', array() ); + $column_headers[ $screen->id ] = apply_filters( "manage_{$screen->id}_columns", array() ); } return $column_headers[ $screen->id ]; @@ -530,7 +530,7 @@ final class WP_Screen { * @see set_current_screen() * @since 3.3.0 */ - function set_current_screen() { + public function set_current_screen() { global $current_screen, $taxnow, $typenow; $current_screen = $this; $taxnow = $this->taxonomy; @@ -581,7 +581,7 @@ final class WP_Screen { * @param WP_Screen $screen A screen object. * @param string $help Help text. */ - static function add_old_compat_help( $screen, $help ) { + public static function add_old_compat_help( $screen, $help ) { self::$_old_compat_help[ $screen->id ] = $help; } @@ -593,7 +593,7 @@ final class WP_Screen { * * @param string $parent_file The parent file of the screen. Typically the $parent_file global. */ - function set_parentage( $parent_file ) { + public function set_parentage( $parent_file ) { $this->parent_file = $parent_file; list( $this->parent_base ) = explode( '?', $parent_file ); $this->parent_base = str_replace( '.php', '', $this->parent_base ); @@ -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; @@ -1011,11 +1017,10 @@ final class WP_Screen { * @since 3.3.0 */ public function render_screen_options() { - global $wp_meta_boxes, $wp_list_table; + global $wp_meta_boxes; $columns = get_column_headers( $this ); $hidden = get_hidden_columns( $this ); - $post = get_post(); ?>