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:
scribu 2010-10-04 20:19:21 +00:00
parent 7ee6aecd1b
commit 8d138e0c4c
1 changed files with 1 additions and 1 deletions

View File

@ -563,7 +563,7 @@ class WP_Object_Query {
}
if ( !empty( $meta_query ) ) {
$this->meta_query[] = $meta_query;
array_unshift( $this->meta_query, $meta_query );
}
}