mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 15:17:42 +02:00
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:
parent
3801e9818a
commit
c17e2baa80
@ -2999,7 +2999,7 @@ function wp_ajax_query_attachments() {
|
|||||||
unset( $query['paged'] );
|
unset( $query['paged'] );
|
||||||
|
|
||||||
$count_query = new WP_Query();
|
$count_query = new WP_Query();
|
||||||
$count_query->query( $query_args );
|
$count_query->query( $query );
|
||||||
$total_posts = $count_query->found_posts;
|
$total_posts = $count_query->found_posts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user