From d8c94501796b5ab78526203319c27033863e6a31 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 5 Oct 2015 21:35:18 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/class-wp-posts-list-table.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php index a63668b586..3277896b3f 100644 --- a/src/wp-admin/includes/class-wp-posts-list-table.php +++ b/src/wp-admin/includes/class-wp-posts-list-table.php @@ -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 );