From 50829f1dda9d03be4bb25c401e5b67c8105d45d9 Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 6 Apr 2005 15:13:56 +0000 Subject: [PATCH] Adding new comment template hooks git-svn-id: http://svn.automattic.com/wordpress/trunk@2518 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-functions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index c12a76a09c..e39709a04f 100644 --- a/wp-includes/comment-functions.php +++ b/wp-includes/comment-functions.php @@ -20,8 +20,10 @@ function comments_template( $file = '/comments.php' ) { get_currentuserinfo(); - if ( file_exists( TEMPLATEPATH . $file ) ) - require( TEMPLATEPATH . $file ); + define('COMMENTS_TEMPLATE', true); + $include = apply_filters('comments_template', TEMPLATEPATH . $file ); + if ( file_exists( $include ) ) + require( $include ); else require( ABSPATH . 'wp-content/themes/default/comments.php');