Add home.php template.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2223 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2005-02-05 18:10:05 +00:00
parent 431b146c23
commit 284b2bd617
1 changed files with 4 additions and 1 deletions

View File

@ -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);