From b7746f62c275b8017d9c0f1e133ced4819e8d22d Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 1 Dec 2006 03:30:26 +0000 Subject: [PATCH] Adding a hook for comments, fixes #3084 git-svn-id: http://svn.automattic.com/wordpress/trunk@4568 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-template.php | 2 ++ 1 file changed, 2 insertions(+) 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 ) )