WordPress.org

Make WordPress Core

Ticket #39968: 39968.1.patch

File 39968.1.patch, 621 bytes (added by Mista-Flo, 8 months ago)
  • src/wp-admin/includes/class-wp-media-list-table.php

    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 { 
    100100
    101101                $this->set_pagination_args(
    102102                        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() ),
    105104                                'per_page'    => $wp_query->query_vars['posts_per_page'],
    106105                        )
    107106                );