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:
parent
ee9f2e48bb
commit
577d223715
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user