Ticket #6801: 6801.003.2.diff
| File 6801.003.2.diff, 1.2 KB (added by , 18 years ago) |
|---|
-
trunk/wp-includes/template-loader.php
26 26 } else if ( is_home() && $template = get_home_template() ) { 27 27 include($template); 28 28 return; 29 } else if ( is_front_page() && $template = get_static_front_page_template() ) { 30 include($template); 31 return; 29 32 } else if ( is_attachment() && $template = get_attachment_template() ) { 30 33 remove_filter('the_content', 'prepend_attachment'); 31 34 include($template); -
trunk/wp-includes/theme.php
399 399 return get_query_template('date'); 400 400 } 401 401 402 function get_static_front_page_template() { 403 $template = ''; 404 405 $template = get_page_template(); 406 if ( in_array($template, array('page.php', '')) && file_exists(TEMPLATEPATH . "/front-page.php") ) { 407 $template = TEMPLATEPATH . "/front-page.php"; 408 } 409 410 return apply_filters('static_front_page_template', $template); 411 } 412 402 413 function get_home_template() { 403 414 $template = ''; 404 415