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

Props boonebgorges.
Fixes #25538.


Built from https://develop.svn.wordpress.org/trunk@28665


git-svn-id: http://core.svn.wordpress.org/trunk@28483 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-06-04 18:21:15 +00:00
parent 23a53beb7e
commit 38819880ec

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