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: http://svn.automattic.com/wordpress/trunk@17123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7d88a90a22
commit
8a6ec685fb
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue