Make WordPress Core

Changeset 32903


Ignore:
Timestamp:
06/22/2015 08:38:32 PM (10 years ago)
Author:
wonderboymusic
Message:

List table views: fix missing current class for "All" when logged in as an author.

Props afercia.
Fixes #32015.

File:
1 edited

Legend:

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

    r32869 r32903  
    226226            $total_posts -= $num_posts->$state;
    227227
    228         if ( empty( $class ) && $this->is_base_request() && ! $this->user_posts_count ) {
     228        if ( empty( $class ) && ( ( $this->is_base_request() && ! $this->user_posts_count ) || isset( $_REQUEST['all_posts'] ) ) ) {
    229229            $class =  ' class="current"';
    230230        }
Note: See TracChangeset for help on using the changeset viewer.