mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
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
This commit is contained in:
parent
553e41cf73
commit
5d2fe3fa18
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user