diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index 031f306987..b85662611b 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/wp-admin/includes/class-wp-media-list-table.php @@ -100,8 +100,7 @@ class WP_Media_List_Table extends WP_List_Table { $this->set_pagination_args( array( - 'total_items' => $wp_query->found_posts, - 'total_pages' => $wp_query->max_num_pages, + 'total_items' => array_sum( (array) wp_count_attachments() ), 'per_page' => $wp_query->query_vars['posts_per_page'], ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 85284cd56f..7057d113d2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-beta3-49566'; +$wp_version = '5.6-beta3-49567'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.