mirror of
git://develop.git.wordpress.org/
synced 2025-04-16 18:11:59 +02:00
Media: Revert [49567].
This addresses a regression with the pagination section in Media Library no longer taking additional query filtering into account. Props iCaleb, trepmal, peterwilsoncc. Reviewed by peterwilsoncc, SergeyBiryukov. Merges [49720] to the 5.6 branch. See #39968. git-svn-id: https://develop.svn.wordpress.org/branches/5.6@49721 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ee4d3df37c
commit
fffe8ed240
@ -100,7 +100,8 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||
|
||||
$this->set_pagination_args(
|
||||
array(
|
||||
'total_items' => array_sum( (array) wp_count_attachments() ),
|
||||
'total_items' => $wp_query->found_posts,
|
||||
'total_pages' => $wp_query->max_num_pages,
|
||||
'per_page' => $wp_query->query_vars['posts_per_page'],
|
||||
)
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user