Wrap individual meta query WHERE clases in parens, missed in 28659.

Props boonebgorges.
Fixes #25538.



git-svn-id: https://develop.svn.wordpress.org/trunk@28665 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-06-04 18:20:59 +00:00
parent ee9f2e48bb
commit 577d223715

View File

@ -1068,7 +1068,7 @@ class WP_Meta_Query {
$where = ' AND (' . implode( "\n{$this->relation} ", $where ) . ' )';
if ( ! empty( $where_meta_key ) ) {
$where .= "\nAND " . implode( "\nAND ", $where_meta_key );
$where .= "\nAND (" . implode( "\nAND ", $where_meta_key ) . ' )';
}
$join = implode( "\n", $join );