mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Introduce get_index_template(). Allows child themes to override a parent theme's index.php. Props koopersmith, fixes #12635
git-svn-id: https://develop.svn.wordpress.org/trunk@13819 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -35,8 +35,8 @@ if ( defined('WP_USE_THEMES') && WP_USE_THEMES ) :
|
||||
elseif ( is_archive() && $template = get_archive_template() ) :
|
||||
elseif ( is_comments_popup() && $template = get_comments_popup_template() ) :
|
||||
elseif ( is_paged() && $template = get_paged_template() ) :
|
||||
elseif ( file_exists( TEMPLATEPATH . '/index.php' ) ) :
|
||||
$template = TEMPLATEPATH . '/index.php';
|
||||
else :
|
||||
$template = get_index_template();
|
||||
endif;
|
||||
if ( $template = apply_filters( 'template_include', $template ) )
|
||||
include( $template );
|
||||
|
||||
Reference in New Issue
Block a user