Put the simple meta query first, so that orderby=meta_value works even when using 'meta_query'. See #15031

git-svn-id: https://develop.svn.wordpress.org/trunk@15721 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu 2010-10-04 20:19:21 +00:00
parent 24294c1c83
commit 7b01cbcc6e

View File

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