mirror of
git://develop.git.wordpress.org/
synced 2025-03-20 12:00:03 +01: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. git-svn-id: https://develop.svn.wordpress.org/trunk@51224 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c00c116484
commit
ed84ca68aa
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user