diff --git a/src/wp-includes/template.php b/src/wp-includes/template.php
index f071881d49..c267de0ab8 100644
a
|
b
|
function locate_template( $template_names, $load = false, $load_once = true, $ar |
705 | 705 | if ( file_exists( STYLESHEETPATH . '/' . $template_name ) ) { |
706 | 706 | $located = STYLESHEETPATH . '/' . $template_name; |
707 | 707 | break; |
708 | | } elseif ( file_exists( TEMPLATEPATH . '/' . $template_name ) ) { |
| 708 | } elseif ( is_child_theme() && file_exists( TEMPLATEPATH . '/' . $template_name ) ) { |
709 | 709 | $located = TEMPLATEPATH . '/' . $template_name; |
710 | 710 | break; |
711 | 711 | } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) { |