Adding new comment template hooks
git-svn-id: https://develop.svn.wordpress.org/trunk@2518 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
181201a4d6
commit
be9bd11994
@ -20,8 +20,10 @@ function comments_template( $file = '/comments.php' ) {
|
|||||||
|
|
||||||
get_currentuserinfo();
|
get_currentuserinfo();
|
||||||
|
|
||||||
if ( file_exists( TEMPLATEPATH . $file ) )
|
define('COMMENTS_TEMPLATE', true);
|
||||||
require( TEMPLATEPATH . $file );
|
$include = apply_filters('comments_template', TEMPLATEPATH . $file );
|
||||||
|
if ( file_exists( $include ) )
|
||||||
|
require( $include );
|
||||||
else
|
else
|
||||||
require( ABSPATH . 'wp-content/themes/default/comments.php');
|
require( ABSPATH . 'wp-content/themes/default/comments.php');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user