List Tables: after [34271], account for searches when calculating pagination.
Fixes #29870. git-svn-id: https://develop.svn.wordpress.org/trunk@35622 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
84aeb528fa
commit
b1d93d6d6a
@ -175,6 +175,8 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||||||
|
|
||||||
if ( $this->hierarchical_display ) {
|
if ( $this->hierarchical_display ) {
|
||||||
$total_items = $wp_query->post_count;
|
$total_items = $wp_query->post_count;
|
||||||
|
} elseif ( isset( $_REQUEST['s'] ) ) {
|
||||||
|
$total_items = $wp_query->found_posts;
|
||||||
} else {
|
} else {
|
||||||
$post_counts = (array) wp_count_posts( $post_type, 'readable' );
|
$post_counts = (array) wp_count_posts( $post_type, 'readable' );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user