Put the simple meta query first, so that orderby=meta_value works even when using 'meta_query'. See #15031
git-svn-id: http://svn.automattic.com/wordpress/trunk@15721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7ee6aecd1b
commit
8d138e0c4c
|
@ -563,7 +563,7 @@ class WP_Object_Query {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !empty( $meta_query ) ) {
|
if ( !empty( $meta_query ) ) {
|
||||||
$this->meta_query[] = $meta_query;
|
array_unshift( $this->meta_query, $meta_query );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue