Changeset 29044 for trunk/src/wp-includes/template.php
- Timestamp:
- 07/09/2014 06:06:54 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/template.php
r28563 r29044 450 450 * Retrieve the name of the highest priority template file that exists. 451 451 * 452 * Searches in the stylesheet path before template pathso that themes which452 * Searches in the STYLESHEETPATH before TEMPLATEPATH so that themes which 453 453 * inherit from a parent theme can just overload one file. 454 454 * … … 465 465 if ( !$template_name ) 466 466 continue; 467 if ( file_exists( get_stylesheet_directory() . '/' . $template_name )) {468 $located = get_stylesheet_directory(). '/' . $template_name;467 if ( file_exists(STYLESHEETPATH . '/' . $template_name)) { 468 $located = STYLESHEETPATH . '/' . $template_name; 469 469 break; 470 } else if ( file_exists( get_template_directory() . '/' . $template_name) ) {471 $located = get_template_directory(). '/' . $template_name;470 } else if ( file_exists(TEMPLATEPATH . '/' . $template_name) ) { 471 $located = TEMPLATEPATH . '/' . $template_name; 472 472 break; 473 473 }
Note: See TracChangeset
for help on using the changeset viewer.