mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user