mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-10 09:31:54 +01:00
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:
parent
23a53beb7e
commit
38819880ec
@ -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