Changeset 28563 for trunk/src/wp-includes/comment-template.php
- Timestamp:
- 05/23/2014 08:11:08 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment-template.php
r28558 r28563 1050 1050 * 1051 1051 * The $file path is passed through a filter hook called, 'comments_template' 1052 * which includes the TEMPLATEPATHand $file combined. Tries the $filtered path1052 * which includes the template path and $file combined. Tries the $filtered path 1053 1053 * first and if it fails it will require the default comment template from the 1054 1054 * default theme. If either does not exist, then the WordPress process will be … … 1135 1135 define('COMMENTS_TEMPLATE', true); 1136 1136 1137 $theme_template = STYLESHEETPATH. $file;1137 $theme_template = get_stylesheet_directory() . $file; 1138 1138 /** 1139 1139 * Filter the path to the theme template file used for the comments template. … … 1146 1146 if ( file_exists( $include ) ) 1147 1147 require( $include ); 1148 elseif ( file_exists( TEMPLATEPATH. $file ) )1149 require( TEMPLATEPATH. $file );1148 elseif ( file_exists( get_template_directory() . $file ) ) 1149 require( get_template_directory() . $file ); 1150 1150 else // Backward compat code will be removed in a future release 1151 1151 require( ABSPATH . WPINC . '/theme-compat/comments.php');
Note: See TracChangeset
for help on using the changeset viewer.