From 284b2bd6172ed69a3f75f5e9cedc67457cc9463d Mon Sep 17 00:00:00 2001 From: rboren Date: Sat, 5 Feb 2005 18:10:05 +0000 Subject: [PATCH] Add home.php template. git-svn-id: http://svn.automattic.com/wordpress/trunk@2223 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index a1aa4c997a..ab2da32edc 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1516,7 +1516,10 @@ function get_date_template() { function get_home_template() { $template = ''; - if ( file_exists(TEMPLATEPATH . "/index.php") ) + + if ( file_exists(TEMPLATEPATH . "/home.php") ) + $template = TEMPLATEPATH . "/home.php"; + else if ( file_exists(TEMPLATEPATH . "/index.php") ) $template = TEMPLATEPATH . "/index.php"; return apply_filters('home_template', $template);