diff --git a/src/wp-admin/includes/class-wp-media-list-table.php b/src/wp-admin/includes/class-wp-media-list-table.php
index fdc26de6ea..09c92274a1 100644
a
|
b
|
class WP_Media_List_Table extends WP_List_Table { |
100 | 100 | |
101 | 101 | $this->set_pagination_args( |
102 | 102 | array( |
103 | | 'total_items' => $wp_query->found_posts, |
104 | | 'total_pages' => $wp_query->max_num_pages, |
| 103 | 'total_items' => array_sum( (array) wp_count_attachments() ), |
105 | 104 | 'per_page' => $wp_query->query_vars['posts_per_page'], |
106 | 105 | ) |
107 | 106 | ); |