Make WordPress Core


Ignore:
Timestamp:
10/05/2015 09:35:18 PM (9 years ago)
Author:
johnbillion
Message:

Correct pagination when viewing the 'Mine' link on the post listing screen.

Fixes #19609
Props ocean90

File:
1 edited

Legend:

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

    r34728 r34837  
    175175            } elseif ( isset( $_REQUEST['show_sticky'] ) && $_REQUEST['show_sticky'] ) {
    176176                $total_items = $this->sticky_posts_count;
     177            } elseif ( isset( $_GET['author'] ) && $_GET['author'] == get_current_user_id() ) {
     178                $total_items = $this->user_posts_count;
    177179            } else {
    178180                $total_items = array_sum( $post_counts );
Note: See TracChangeset for help on using the changeset viewer.