Recognize meta_query as a query var. Props aaroncampbell. Fixes #14645
git-svn-id: https://develop.svn.wordpress.org/trunk@15713 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7cac913b3b
commit
68f22e028e
@ -1168,8 +1168,6 @@ class WP_Query {
|
||||
, 'tb'
|
||||
, 'paged'
|
||||
, 'comments_popup'
|
||||
, 'meta_key'
|
||||
, 'meta_value'
|
||||
, 'preview'
|
||||
, 's'
|
||||
, 'sentence'
|
||||
@ -1391,7 +1389,12 @@ class WP_Query {
|
||||
$this->is_tax = true;
|
||||
}
|
||||
|
||||
if ( !empty( $qv['meta_query'] ) && is_array( $qv['meta_query'] ) ) {
|
||||
$this->meta_query = $qv['meta_query'];
|
||||
}
|
||||
|
||||
$meta_query = wp_array_slice_assoc( $qv, array( 'meta_key', 'meta_value', 'meta_compare' ) );
|
||||
|
||||
if ( !empty( $meta_query ) )
|
||||
$this->meta_query[] = $meta_query;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user