List Tables: after [34271], account for searches when calculating pagination.
Fixes #29870. Built from https://develop.svn.wordpress.org/trunk@35622 git-svn-id: http://core.svn.wordpress.org/trunk@35586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
415ab45b9f
commit
128a9c3acd
|
@ -175,6 +175,8 @@ class WP_Posts_List_Table extends WP_List_Table {
|
|||
|
||||
if ( $this->hierarchical_display ) {
|
||||
$total_items = $wp_query->post_count;
|
||||
} elseif ( isset( $_REQUEST['s'] ) ) {
|
||||
$total_items = $wp_query->found_posts;
|
||||
} else {
|
||||
$post_counts = (array) wp_count_posts( $post_type, 'readable' );
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-beta3-35621';
|
||||
$wp_version = '4.4-beta3-35622';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue