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

Fixes #19609
Props ocean90


git-svn-id: https://develop.svn.wordpress.org/trunk@34837 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2015-10-05 21:35:18 +00:00
parent e710e49fe0
commit d8c9450179

View File

@ -174,6 +174,8 @@ class WP_Posts_List_Table extends WP_List_Table {
$total_items = $post_counts[ $_REQUEST['post_status'] ];
} elseif ( isset( $_REQUEST['show_sticky'] ) && $_REQUEST['show_sticky'] ) {
$total_items = $this->sticky_posts_count;
} elseif ( isset( $_GET['author'] ) && $_GET['author'] == get_current_user_id() ) {
$total_items = $this->user_posts_count;
} else {
$total_items = array_sum( $post_counts );