' . __('You can hide/display columns based on your needs and decide how many posts to list per screen using the Screen Options tab.') . '
' .
'
' . __('You can filter the list of posts by post status using the text links in the upper left to show All, Published, Draft, or Trashed posts. The default view is to show all posts.') . '
' .
- '
' . __('You can view posts in a simple title list or with an excerpt. Choose the view you prefer by clicking on the icons at the top of the list on the right.') . '
' .
+ '
' . __('You can view posts in a simple title list or with an excerpt using the Screen Options tab.') . '
' .
'
' . __('You can refine the list to show only posts in a specific category or from a specific month by using the dropdown menus above the posts list. Click the Filter button after making your selection. You also can refine the list by clicking on the post author, category or tag in the posts list.') . '
' .
'
'
) );
diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php
index fb5a790d6c..3300621c2b 100644
--- a/wp-admin/includes/class-wp-posts-list-table.php
+++ b/wp-admin/includes/class-wp-posts-list-table.php
@@ -515,9 +515,6 @@ class WP_Posts_List_Table extends WP_List_Table {
global $mode;
parent::pagination( $which );
-
- if ( 'top' === $which && ! is_post_type_hierarchical( $this->screen->post_type ) )
- $this->view_switcher( $mode );
}
/**
diff --git a/wp-admin/includes/class-wp-screen.php b/wp-admin/includes/class-wp-screen.php
index 100fa132ed..13d59dc981 100644
--- a/wp-admin/includes/class-wp-screen.php
+++ b/wp-admin/includes/class-wp-screen.php
@@ -991,6 +991,7 @@ final class WP_Screen {
$this->render_list_table_columns_preferences();
$this->render_screen_layout();
$this->render_per_page_options();
+ $this->render_view_mode();
echo $this->_screen_settings;
/**
@@ -1187,6 +1188,46 @@ final class WP_Screen {
false, 'show_ui' => true ) );
+ $view_mode_post_types = apply_filters( 'view_mode_post_types', $view_mode_post_types );
+
+ if ( ! in_array( $this->post_type, $view_mode_post_types ) ) {
+ return;
+ }
+
+ global $mode;
+
+ // This needs a submit button
+ add_filter( 'screen_options_show_submit', '__return_true' );
+?>
+
+ID, $option, $value);
- wp_safe_redirect( remove_query_arg( array('pagenum', 'apage', 'paged'), wp_get_referer() ) );
+
+ $url = remove_query_arg( array( 'pagenum', 'apage', 'paged' ), wp_get_referer() );
+ if ( isset( $_POST['mode'] ) ) {
+ $url = add_query_arg( array( 'mode' => $_POST['mode'] ), $url );
+ }
+
+ wp_safe_redirect( $url );
exit;
}
}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index fe028adfa7..e7572a7cda 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
-$wp_version = '4.4-alpha-35356';
+$wp_version = '4.4-alpha-35357';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.