From 1c309312a07208df9bdead35c98f500a39938a03 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 23 Dec 2010 17:05:47 +0000 Subject: [PATCH] Revert [16915]. Don't honor the page template for the posts page. Deal with this with a better UX in 3.2. see #15513, fixes #15945. git-svn-id: https://develop.svn.wordpress.org/trunk@17123 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/theme.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 51d8cd7922..9d2f905af6 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -912,12 +912,8 @@ 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 ); }