WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/07/2015 12:08:42 AM (6 years ago)
Author:
wonderboymusic
Message:

Posts List Table: ensure that "All" gets the "current" CSS class when applicable.

Props afercia.
Fixes #19609.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-posts-list-table.php

    r34837 r34889  
    327327        }
    328328
    329         if ( empty( $class ) && ( ( $this->is_base_request() && ! $this->user_posts_count ) || isset( $_REQUEST['all_posts'] ) ) ) {
     329        if ( empty( $class ) && ( $this->is_base_request() || isset( $_REQUEST['all_posts'] ) ) ) {
    330330            $class = 'current';
    331331        }
Note: See TracChangeset for help on using the changeset viewer.