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.

git-svn-id: https://develop.svn.wordpress.org/trunk@51224 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Joe Dolson 2021-06-23 22:46:46 +00:00
parent c00c116484
commit ed84ca68aa

View File

@ -2999,7 +2999,7 @@ function wp_ajax_query_attachments() {
unset( $query['paged'] );
$count_query = new WP_Query();
$count_query->query( $query_args );
$count_query->query( $query );
$total_posts = $count_query->found_posts;
}