diff --git a/wp-includes/theme.php b/wp-includes/theme.php index efff2c6f5..420a6844e 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -912,8 +912,12 @@ function get_date_template() { * @return string */ function get_home_template() { + $template = get_post_meta( get_queried_object_id(), '_wp_page_template', true); $templates = array( 'home.php', 'index.php' ); + if ( ! empty( $template ) ) + array_unshift( $templates, $template ); + return get_query_template( 'home', $templates ); }