@@ 663-665 (lines=3) @@ | ||
660 | } |
|
661 | ||
662 | $post_id = absint( $this->query_vars['post_id'] ); |
|
663 | if ( ! empty( $post_id ) ) { |
|
664 | $this->sql_clauses['where']['post_id'] = $this->db->prepare( 'comment_post_ID = %d', $post_id ); |
|
665 | } |
|
666 | ||
667 | // Parse comment IDs for an IN clause. |
|
668 | if ( ! empty( $this->query_vars['comment__in'] ) ) { |
@@ 402-404 (lines=3) @@ | ||
399 | ||
400 | // Parse site IDs for an IN clause. |
|
401 | $site_id = absint( $this->query_vars['ID'] ); |
|
402 | if ( ! empty( $site_id ) ) { |
|
403 | $this->sql_clauses['where']['ID'] = $this->db->prepare( 'blog_id = %d', $site_id ); |
|
404 | } |
|
405 | ||
406 | // Parse site IDs for an IN clause. |
|
407 | if ( ! empty( $this->query_vars['site__in'] ) ) { |
|
@@ 418-420 (lines=3) @@ | ||
415 | ||
416 | $network_id = absint( $this->query_vars['network_id'] ); |
|
417 | ||
418 | if ( ! empty( $network_id ) ) { |
|
419 | $this->sql_clauses['where']['network_id'] = $this->db->prepare( 'site_id = %d', $network_id ); |
|
420 | } |
|
421 | ||
422 | // Parse site network IDs for an IN clause. |
|
423 | if ( ! empty( $this->query_vars['network__in'] ) ) { |