WordPress.org

Make WordPress Core

Changeset 51224


Ignore:
Timestamp:
06/23/2021 10:46:46 PM (7 months ago)
Author:
joedolson
Message:

Media: Correct undefined variable in wp_ajax_query_attachments.

Fix a misnamed variable introduced in [51145]. Change $query_args to correctly defined variable $query.

Follow-up to [51145].

props desrosj, audrasjb.
Fixes #50105.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r51222 r51224  
    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    }
Note: See TracChangeset for help on using the changeset viewer.