Ticket #12635: 12635.2.patch
File 12635.2.patch, 1.2 KB (added by , 15 years ago) |
---|
-
wp-includes/template-loader.php
35 35 elseif ( is_archive() && $template = get_archive_template() ) : 36 36 elseif ( is_comments_popup() && $template = get_comments_popup_template() ) : 37 37 elseif ( is_paged() && $template = get_paged_template() ) : 38 else if ( file_exists( TEMPLATEPATH . '/index.php' ) ):39 $template = TEMPLATEPATH . '/index.php';38 else : 39 $template = get_index_template(); 40 40 endif; 41 41 if ( $template = apply_filters( 'template_include', $template ) ) 42 42 include( $template ); -
wp-includes/theme.php
686 686 } 687 687 688 688 /** 689 * Retrieve path of index template in current or parent template. 690 * 691 * @since 3.0.0 692 * 693 * @return string 694 */ 695 function get_index_template() { 696 return get_query_template('index'); 697 } 698 699 /** 689 700 * Retrieve path of 404 template in current or parent template. 690 701 * 691 702 * @since 1.5.0