From b8f49cebee4de88363b3f90eafc29998b4db717a Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 22 Jun 2015 20:39:27 +0000 Subject: [PATCH] List table views: fix missing current class for "All" when logged in as an author. Props afercia. Fixes #32015. Built from https://develop.svn.wordpress.org/trunk@32903 git-svn-id: http://core.svn.wordpress.org/trunk@32874 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-posts-list-table.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index 7d2cc79546..fe4001c8ca 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -225,7 +225,7 @@ class WP_Posts_List_Table extends WP_List_Table { foreach ( get_post_stati( array('show_in_admin_all_list' => false) ) as $state ) $total_posts -= $num_posts->$state; - if ( empty( $class ) && $this->is_base_request() && ! $this->user_posts_count ) { + if ( empty( $class ) && ( ( $this->is_base_request() && ! $this->user_posts_count ) || isset( $_REQUEST['all_posts'] ) ) ) { $class = ' class="current"'; } diff --git a/wp-includes/version.php b/wp-includes/version.php index d69cc39275..9510ac14ab 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-alpha-32902'; +$wp_version = '4.3-alpha-32903'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.