Changeset 14276
- Timestamp:
- 04/28/2010 07:48:09 AM (13 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-loader.php
r13819 r14276 24 24 elseif ( is_search() && $template = get_search_template() ) : 25 25 elseif ( is_tax() && $template = get_taxonomy_template() ) : 26 elseif ( is_front_page() && $template = get_front_page_template() ) : 26 27 elseif ( is_home() && $template = get_home_template() ) : 27 28 elseif ( is_attachment() && $template = get_attachment_template() ) : -
trunk/wp-includes/theme.php
r14240 r14276 845 845 /** 846 846 * Retrieve path of home template in current or parent template. 847 * 847 * 848 * This is the template used for the page containing the blog posts 849 * 848 850 * Attempts to locate 'home.php' first before falling back to 'index.php'. 849 851 * … … 856 858 $template = locate_template(array('home.php', 'index.php')); 857 859 return apply_filters('home_template', $template); 860 } 861 862 /** 863 * Retrieve path of front-page template in current or parent template. 864 * 865 * Looks for 'front-page.php'. 866 * 867 * @since 3.0.0 868 * @uses apply_filters() Calls 'front_page_template' on file path of template. 869 * 870 * @return string 871 */ 872 function get_front_page_template() { 873 global $wp_query; 874 875 return apply_filters( 'front_page_template', locate_template( array('front-page.php') ) ); 858 876 } 859 877 … … 1002 1020 $located = ''; 1003 1021 foreach ( $template_names as $template_name ) { 1022 if ( !$template_name ) 1023 continue; 1004 1024 if ( file_exists(STYLESHEETPATH . '/' . $template_name)) { 1005 1025 $located = STYLESHEETPATH . '/' . $template_name;
Note: See TracChangeset
for help on using the changeset viewer.