git-svn-id: http://svn.automattic.com/wordpress/trunk@2289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-02-12 08:58:27 +00:00
parent 553e41cf73
commit 5d2fe3fa18
1 changed files with 3 additions and 3 deletions

View File

@ -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');