diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php
index a798a2c..ca5495b 100644
a
|
b
|
class WP_Posts_List_Table extends WP_List_Table { |
145 | 145 | foreach ( get_post_stati( array('show_in_admin_all_list' => false) ) as $state ) |
146 | 146 | $total_posts -= $num_posts->$state; |
147 | 147 | |
148 | | $class = empty( $class ) && empty( $_REQUEST['post_status'] ) && empty( $_REQUEST['show_sticky'] ) ? ' class="current"' : ''; |
| 148 | $class = empty( $class ) && ( count($_REQUEST) == 0 || count($_REQUEST) == 1 && isset($_REQUEST['post_type']) ) ? ' class="current"' : ''; |
149 | 149 | $status_links['all'] = "<a href='edit.php?post_type=$post_type{$allposts}'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_posts, 'posts' ), number_format_i18n( $total_posts ) ) . '</a>'; |
150 | 150 | |
151 | 151 | foreach ( get_post_stati(array('show_in_admin_status_list' => true), 'objects') as $status ) { |