@@ 3065-3067 (lines=3) @@ | ||
3062 | $where .= sprintf( " AND {$this->db->posts}.post_password %s ''", $q['has_password'] ? '!=' : '=' ); |
|
3063 | } |
|
3064 | ||
3065 | if ( ! empty( $q['comment_status'] ) ) { |
|
3066 | $where .= $this->db->prepare( " AND {$this->db->posts}.comment_status = %s ", $q['comment_status'] ); |
|
3067 | } |
|
3068 | ||
3069 | if ( ! empty( $q['ping_status'] ) ) { |
|
3070 | $where .= $this->db->prepare( " AND {$this->db->posts}.ping_status = %s ", $q['ping_status'] ); |
|
@@ 3069-3071 (lines=3) @@ | ||
3066 | $where .= $this->db->prepare( " AND {$this->db->posts}.comment_status = %s ", $q['comment_status'] ); |
|
3067 | } |
|
3068 | ||
3069 | if ( ! empty( $q['ping_status'] ) ) { |
|
3070 | $where .= $this->db->prepare( " AND {$this->db->posts}.ping_status = %s ", $q['ping_status'] ); |
|
3071 | } |
|
3072 | ||
3073 | if ( 'any' == $post_type ) { |
|
3074 | $in_search_post_types = get_post_types( array('exclude_from_search' => false) ); |