wp-includes/class-wp-meta-query.php 1 location
|
@@ 153-157 (lines=5) @@
|
150 |
|
return; |
151 |
|
} |
152 |
|
|
153 |
|
if ( isset( $meta_query['relation'] ) && strtoupper( $meta_query['relation'] ) == 'OR' ) { |
154 |
|
$this->relation = 'OR'; |
155 |
|
} else { |
156 |
|
$this->relation = 'AND'; |
157 |
|
} |
158 |
|
|
159 |
|
$this->queries = $this->sanitize_query( $meta_query ); |
160 |
|
} |
wp-includes/date.php 1 location
|
@@ 163-167 (lines=5) @@
|
160 |
|
public function __construct( $date_query, $default_column = 'post_date' ) { |
161 |
|
$this->db = $GLOBALS['wpdb']; |
162 |
|
|
163 |
|
if ( isset( $date_query['relation'] ) && 'OR' === strtoupper( $date_query['relation'] ) ) { |
164 |
|
$this->relation = 'OR'; |
165 |
|
} else { |
166 |
|
$this->relation = 'AND'; |
167 |
|
} |
168 |
|
|
169 |
|
if ( ! is_array( $date_query ) ) { |
170 |
|
return; |