$join .=
$this->meta_query_clauses
['join'
];
// Strip leading 'AND'.
$this->sql_clauses
['where'
]['meta_query'
] =
preg_replace( '/^\s*AND\s*/', '',
$this->meta_query_clauses
['where'
] );
if ( !
$this->query_vars
['count'
] ) { $groupby = "{
$wpdb->comments
}.comment_ID";
} } if ( !
empty( $this->query_vars
['date_query'
] ) &&
is_array( $this->query_vars
['date_query'
] ) ) { $this->date_query =
new WP_Date_Query( $this->query_vars
['date_query'
], 'comment_date'
);
// Strip leading 'AND'.
$this->sql_clauses
['where'
]['date_query'
] =
preg_replace( '/^\s*AND\s*/', '',
$this->date_query->
get_sql() );
} $where =
implode( ' AND ',
$this->sql_clauses
['where'
] );
$pieces = array
( 'fields', 'join', 'where', 'orderby', 'limits', 'groupby'
);
/**
* Filters the comment query clauses.
*
* @since 3.1.0
*
* @param string[] $clauses An associative array of comment query clauses.
* @param WP_Comment_Query $query Current instance of WP_Comment_Query (passed by reference).
*/