WordPress.org

Make WordPress Core

Ticket #50105: 50105.14.diff

File 50105.14.diff, 469 bytes (added by audrasjb, 7 months ago)
  • src/wp-admin/includes/ajax-actions.php

    diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php
    index d341b236f6..a4ed8efbfc 100644
    a b function wp_ajax_query_attachments() { 
    29992999                unset( $query['paged'] );
    30003000
    30013001                $count_query = new WP_Query();
    3002                 $count_query->query( $query_args );
     3002                $count_query->query( $query );
    30033003                $total_posts = $count_query->found_posts;
    30043004        }
    30053005