mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
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
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user