Ticket #12635: template-loader.patch
File template-loader.patch, 734 bytes (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 = locate_template(array('index.php')); 40 40 endif; 41 41 if ( $template = apply_filters( 'template_include', $template ) ) 42 42 include( $template );