Changeset 29044 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 07/09/2014 06:06:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r28976 r29044 1064 1064 * 1065 1065 * The $file path is passed through a filter hook called, 'comments_template' 1066 * which includes the template pathand $file combined. Tries the $filtered path1066 * which includes the TEMPLATEPATH and $file combined. Tries the $filtered path 1067 1067 * first and if it fails it will require the default comment template from the 1068 1068 * default theme. If either does not exist, then the WordPress process will be … … 1149 1149 define('COMMENTS_TEMPLATE', true); 1150 1150 1151 $theme_template = get_stylesheet_directory(). $file;1151 $theme_template = STYLESHEETPATH . $file; 1152 1152 /** 1153 1153 * Filter the path to the theme template file used for the comments template. … … 1160 1160 if ( file_exists( $include ) ) 1161 1161 require( $include ); 1162 elseif ( file_exists( get_template_directory(). $file ) )1163 require( get_template_directory(). $file );1162 elseif ( file_exists( TEMPLATEPATH . $file ) ) 1163 require( TEMPLATEPATH . $file ); 1164 1164 else // Backward compat code will be removed in a future release 1165 1165 require( ABSPATH . WPINC . '/theme-compat/comments.php');
Note: See TracChangeset
for help on using the changeset viewer.