Changeset 36693 for trunk/src/wp-includes/template.php
- Timestamp:
- 02/24/2016 08:56:18 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/template.php
r35848 r36693 469 469 * Retrieve the name of the highest priority template file that exists. 470 470 * 471 * Searches in the STYLESHEETPATH before TEMPLATEPATH so that themes which472 * inherit from a parent theme can just overload one file.471 * Searches in the STYLESHEETPATH before TEMPLATEPATH and wp-includes/theme-compat 472 * so that themes which inherit from a parent theme can just overload one file. 473 473 * 474 474 * @since 2.7.0 … … 490 490 $located = TEMPLATEPATH . '/' . $template_name; 491 491 break; 492 } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) { 493 $located = ABSPATH . WPINC . '/theme-compat/' . $template_name; 494 break; 492 495 } 493 496 }
Note: See TracChangeset
for help on using the changeset viewer.