Changeset 28563 for trunk/src/wp-includes/template.php
- Timestamp:
- 05/23/2014 08:11:08 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/template.php
r26906 r28563 450 450 * Retrieve the name of the highest priority template file that exists. 451 451 * 452 * Searches in the STYLESHEETPATH before TEMPLATEPATHso that themes which452 * Searches in the stylesheet path before template path 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( STYLESHEETPATH . '/' . $template_name)) {468 $located = STYLESHEETPATH. '/' . $template_name;467 if ( file_exists( get_stylesheet_directory() . '/' . $template_name ) ) { 468 $located = get_stylesheet_directory() . '/' . $template_name; 469 469 break; 470 } else if ( file_exists( TEMPLATEPATH . '/' . $template_name) ) {471 $located = TEMPLATEPATH. '/' . $template_name;470 } else if ( file_exists( get_template_directory() . '/' . $template_name ) ) { 471 $located = get_template_directory() . '/' . $template_name; 472 472 break; 473 473 }
Note: See TracChangeset
for help on using the changeset viewer.