@@ 456-459 (lines=4) @@ | ||
453 | $this->sql_clauses['where']['path__not_in'] = "path NOT IN ( '" . implode( "', '", $wpdb->_escape( $this->query_vars['path__not_in'] ) ) . "' )"; |
|
454 | } |
|
455 | ||
456 | if ( is_numeric( $this->query_vars['archived'] ) ) { |
|
457 | $archived = absint( $this->query_vars['archived'] ); |
|
458 | $this->sql_clauses['where']['archived'] = $wpdb->prepare( "archived = %d ", $archived ); |
|
459 | } |
|
460 | ||
461 | if ( is_numeric( $this->query_vars['mature'] ) ) { |
|
462 | $mature = absint( $this->query_vars['mature'] ); |
|
@@ 461-464 (lines=4) @@ | ||
458 | $this->sql_clauses['where']['archived'] = $wpdb->prepare( "archived = %d ", $archived ); |
|
459 | } |
|
460 | ||
461 | if ( is_numeric( $this->query_vars['mature'] ) ) { |
|
462 | $mature = absint( $this->query_vars['mature'] ); |
|
463 | $this->sql_clauses['where']['mature'] = $wpdb->prepare( "mature = %d ", $mature ); |
|
464 | } |
|
465 | ||
466 | if ( is_numeric( $this->query_vars['spam'] ) ) { |
|
467 | $spam = absint( $this->query_vars['spam'] ); |
|
@@ 466-469 (lines=4) @@ | ||
463 | $this->sql_clauses['where']['mature'] = $wpdb->prepare( "mature = %d ", $mature ); |
|
464 | } |
|
465 | ||
466 | if ( is_numeric( $this->query_vars['spam'] ) ) { |
|
467 | $spam = absint( $this->query_vars['spam'] ); |
|
468 | $this->sql_clauses['where']['spam'] = $wpdb->prepare( "spam = %d ", $spam ); |
|
469 | } |
|
470 | ||
471 | if ( is_numeric( $this->query_vars['deleted'] ) ) { |
|
472 | $deleted = absint( $this->query_vars['deleted'] ); |
|
@@ 471-474 (lines=4) @@ | ||
468 | $this->sql_clauses['where']['spam'] = $wpdb->prepare( "spam = %d ", $spam ); |
|
469 | } |
|
470 | ||
471 | if ( is_numeric( $this->query_vars['deleted'] ) ) { |
|
472 | $deleted = absint( $this->query_vars['deleted'] ); |
|
473 | $this->sql_clauses['where']['deleted'] = $wpdb->prepare( "deleted = %d ", $deleted ); |
|
474 | } |
|
475 | ||
476 | if ( is_numeric( $this->query_vars['public'] ) ) { |
|
477 | $public = absint( $this->query_vars['public'] ); |
|
@@ 476-479 (lines=4) @@ | ||
473 | $this->sql_clauses['where']['deleted'] = $wpdb->prepare( "deleted = %d ", $deleted ); |
|
474 | } |
|
475 | ||
476 | if ( is_numeric( $this->query_vars['public'] ) ) { |
|
477 | $public = absint( $this->query_vars['public'] ); |
|
478 | $this->sql_clauses['where']['public'] = $wpdb->prepare( "public = %d ", $public ); |
|
479 | } |
|
480 | ||
481 | if ( is_numeric( $this->query_vars['lang_id'] ) ) { |
|
482 | $lang_id = absint( $this->query_vars['lang_id'] ); |
|
@@ 481-484 (lines=4) @@ | ||
478 | $this->sql_clauses['where']['public'] = $wpdb->prepare( "public = %d ", $public ); |
|
479 | } |
|
480 | ||
481 | if ( is_numeric( $this->query_vars['lang_id'] ) ) { |
|
482 | $lang_id = absint( $this->query_vars['lang_id'] ); |
|
483 | $this->sql_clauses['where']['lang_id'] = $wpdb->prepare( "lang_id = %d ", $lang_id ); |
|
484 | } |
|
485 | ||
486 | // Parse site language IDs for an IN clause. |
|
487 | if ( ! empty( $this->query_vars['lang__in'] ) ) { |