Ticket #6801: 6801.002.diff
| File 6801.002.diff, 1.3 KB (added by , 18 years ago) |
|---|
-
trunk/wp-includes/template-loader.php
23 23 } else if ( is_tax() && $template = get_taxonomy_template()) { 24 24 include($template); 25 25 return; 26 } else if ( is_front_page() && $template = get_front_page_template() ) { 27 include($template); 28 return; 26 29 } else if ( is_home() && $template = get_home_template() ) { 27 30 include($template); 28 31 return; -
trunk/wp-includes/theme.php
399 399 return get_query_template('date'); 400 400 } 401 401 402 function get_front_page_template() { 403 $template = ''; 404 405 if ( is_home() ) { 406 if ( file_exists(TEMPLATEPATH . "/front-page.php") ) 407 $template = TEMPLATEPATH . "/front-page.php"; 408 else 409 $template = get_home_path(); 410 } else { 411 $template = get_page_template(); 412 if ( in_array($template, array('page.php', '')) && file_exists(TEMPLATEPATH . "/front-page.php") ) { 413 $template = TEMPLATEPATH . "/front-page.php"; 414 } 415 } 416 417 return apply_filters('front_page_template', $template); 418 } 419 402 420 function get_home_template() { 403 421 $template = ''; 404 422