src/wp-includes/class-wp-tax-query.php 1 location
|
@@ 284-297 (lines=14) @@
|
| 281 |
|
* @type string $where SQL fragment to append to the main WHERE clause. |
| 282 |
|
* } |
| 283 |
|
*/ |
| 284 |
|
protected function get_sql_clauses() { |
| 285 |
|
/* |
| 286 |
|
* $queries are passed by reference to get_sql_for_query() for recursion. |
| 287 |
|
* To keep $this->queries unaltered, pass a copy. |
| 288 |
|
*/ |
| 289 |
|
$queries = $this->queries; |
| 290 |
|
$sql = $this->get_sql_for_query( $queries ); |
| 291 |
|
|
| 292 |
|
if ( ! empty( $sql['where'] ) ) { |
| 293 |
|
$sql['where'] = ' AND ' . $sql['where']; |
| 294 |
|
} |
| 295 |
|
|
| 296 |
|
return $sql; |
| 297 |
|
} |
| 298 |
|
|
| 299 |
|
/** |
| 300 |
|
* Generate SQL clauses for a single query array. |
src/wp-includes/class-wp-meta-query.php 1 location
|
@@ 379-392 (lines=14) @@
|
| 376 |
|
* @type string $where SQL fragment to append to the main WHERE clause. |
| 377 |
|
* } |
| 378 |
|
*/ |
| 379 |
|
protected function get_sql_clauses() { |
| 380 |
|
/* |
| 381 |
|
* $queries are passed by reference to get_sql_for_query() for recursion. |
| 382 |
|
* To keep $this->queries unaltered, pass a copy. |
| 383 |
|
*/ |
| 384 |
|
$queries = $this->queries; |
| 385 |
|
$sql = $this->get_sql_for_query( $queries ); |
| 386 |
|
|
| 387 |
|
if ( ! empty( $sql['where'] ) ) { |
| 388 |
|
$sql['where'] = ' AND ' . $sql['where']; |
| 389 |
|
} |
| 390 |
|
|
| 391 |
|
return $sql; |
| 392 |
|
} |
| 393 |
|
|
| 394 |
|
/** |
| 395 |
|
* Generate SQL clauses for a single query array. |
src/wp-includes/date.php 1 location
|
@@ 590-598 (lines=9) @@
|
| 587 |
|
* @type string $where SQL fragment to append to the main WHERE clause. |
| 588 |
|
* } |
| 589 |
|
*/ |
| 590 |
|
protected function get_sql_clauses() { |
| 591 |
|
$sql = $this->get_sql_for_query( $this->queries ); |
| 592 |
|
|
| 593 |
|
if ( ! empty( $sql['where'] ) ) { |
| 594 |
|
$sql['where'] = ' AND ' . $sql['where']; |
| 595 |
|
} |
| 596 |
|
|
| 597 |
|
return $sql; |
| 598 |
|
} |
| 599 |
|
|
| 600 |
|
/** |
| 601 |
|
* Generate SQL clauses for a single query array. |