From 5d2fe3fa181c4d7f4947eeb7d3f2b1ce083b0156 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sat, 12 Feb 2005 08:58:27 +0000 Subject: [PATCH] Allow custom comment template - http://mosquito.wordpress.org/view.php?id=632 git-svn-id: http://svn.automattic.com/wordpress/trunk@2289 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index 773efc785d..07f3b0dfd2 100644 --- a/wp-includes/comment-functions.php +++ b/wp-includes/comment-functions.php @@ -2,7 +2,7 @@ // Template functions -function comments_template() { +function comments_template( $file = '/comments.php' ) { global $wp_query, $withcomments, $post, $wpdb, $id, $comment, $user_login, $user_ID, $user_identity; if ( is_single() || is_page() || $withcomments ) : @@ -20,8 +20,8 @@ function comments_template() { get_currentuserinfo(); - if ( file_exists( TEMPLATEPATH . '/comments.php') ) - require( TEMPLATEPATH . '/comments.php'); + if ( file_exists( TEMPLATEPATH . $file ) ) + require( TEMPLATEPATH . $file ); else require( ABSPATH . 'wp-content/themes/default/comments.php');