Move more references from default to WP_FALLBACK_THEME. To make 'default' theme transition smoother in the future.

git-svn-id: https://develop.svn.wordpress.org/trunk@13202 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-02-18 22:09:06 +00:00
parent 6ac95a1b86
commit 6c53a37d5b
2 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@
*
* Includes the header template for a theme or if a name is specified then a
* specialised header will be included. If the theme contains no header.php file
* then the header from the default theme will be included.
* then the header from the WP_FALLBACK_THEME theme will be included.
*
* For the parameter, if the file is called "header-special.php" then specify
* "special".
@ -32,7 +32,7 @@ function get_header( $name = null ) {
$templates[] = "header.php";
if ('' == locate_template($templates, true))
load_template( get_theme_root() . '/default/header.php');
load_template( get_theme_root() . '/'. WP_FALLBACK_THEME. '/header.php');
}
/**
@ -61,7 +61,7 @@ function get_footer( $name = null ) {
$templates[] = "footer.php";
if ('' == locate_template($templates, true))
load_template( get_theme_root() . '/default/footer.php');
load_template( get_theme_root() . '/' . WP_FALLBACK_THEME . '/footer.php');
}
/**
@ -90,7 +90,7 @@ function get_sidebar( $name = null ) {
$templates[] = "sidebar.php";
if ('' == locate_template($templates, true))
load_template( get_theme_root() . '/default/sidebar.php');
load_template( get_theme_root() . '/' . WP_FALLBACK_THEME . '/sidebar.php');
}
/**

View File

@ -949,7 +949,7 @@ function get_attachment_template() {
*
* Checks for comment popup template in current template, if it exists or in the
* parent template. If it doesn't exist, then it retrieves the comment-popup.php
* file from the default theme. The default theme must then exist for it to
* file from the WP_FALLBACK_THEME theme. The WP_FALLBACK_THEME theme must then exist for it to
* work.
*
* @since 1.5.0