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.
Built from https://develop.svn.wordpress.org/trunk@51224


git-svn-id: http://core.svn.wordpress.org/trunk@50833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
joedolson 2021-06-23 22:47:59 +00:00
parent 3801e9818a
commit c17e2baa80
2 changed files with 2 additions and 2 deletions

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;
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.8-beta3-51223';
$wp_version = '5.8-beta3-51224';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.