diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 3fee66a20..6f5355873 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -290,6 +290,8 @@ function comments_template( $file = '/comments.php' ) { $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND ( comment_approved = '1' OR ( comment_author = '$author_db' AND comment_author_email = '$email_db' AND comment_approved = '0' ) ) ORDER BY comment_date"); } + $comments = apply_filters( 'comments_array', $comments, $post->ID ); + define('COMMENTS_TEMPLATE', true); $include = apply_filters('comments_template', TEMPLATEPATH . $file ); if ( file_exists( $include ) )