Correct pagination when viewing the 'Mine' link on the post listing screen.
Fixes #19609 Props ocean90 Built from https://develop.svn.wordpress.org/trunk@34837 git-svn-id: http://core.svn.wordpress.org/trunk@34802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ab413e89bf
commit
1e90e58da3
|
@ -174,6 +174,8 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
$total_items = $post_counts[ $_REQUEST['post_status'] ];
|
$total_items = $post_counts[ $_REQUEST['post_status'] ];
|
||||||
} elseif ( isset( $_REQUEST['show_sticky'] ) && $_REQUEST['show_sticky'] ) {
|
} elseif ( isset( $_REQUEST['show_sticky'] ) && $_REQUEST['show_sticky'] ) {
|
||||||
$total_items = $this->sticky_posts_count;
|
$total_items = $this->sticky_posts_count;
|
||||||
|
} elseif ( isset( $_GET['author'] ) && $_GET['author'] == get_current_user_id() ) {
|
||||||
|
$total_items = $this->user_posts_count;
|
||||||
} else {
|
} else {
|
||||||
$total_items = array_sum( $post_counts );
|
$total_items = array_sum( $post_counts );
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34836';
|
$wp_version = '4.4-alpha-34837';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue