Posts List Table: ensure that "All" gets the "current" CSS class when applicable.
Props afercia. Fixes #19609. git-svn-id: https://develop.svn.wordpress.org/trunk@34889 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bec5838166
commit
6507668f4e
@ -326,7 +326,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
$class = '';
|
||||
}
|
||||
|
||||
if ( empty( $class ) && ( ( $this->is_base_request() && ! $this->user_posts_count ) || isset( $_REQUEST['all_posts'] ) ) ) {
|
||||
if ( empty( $class ) && ( $this->is_base_request() || isset( $_REQUEST['all_posts'] ) ) ) {
|
||||
$class = 'current';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user