Adding new comment template hooks
git-svn-id: http://svn.automattic.com/wordpress/trunk@2518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2cdb8f3852
commit
50829f1dda
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue