Avoid warning when parent template does not exist.
git-svn-id: https://develop.svn.wordpress.org/trunk@12216 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e14dc40aeb
commit
e6be89ee0a
|
@ -316,9 +316,8 @@ function get_themes() {
|
||||||
* The parent theme doesn't exist in the current theme's folder or sub folder
|
* The parent theme doesn't exist in the current theme's folder or sub folder
|
||||||
* so lets use the theme root for the parent template.
|
* so lets use the theme root for the parent template.
|
||||||
*/
|
*/
|
||||||
$parent_theme_root = $theme_files[$template]['theme_root'];
|
if ( isset($theme_files[$template]) && file_exists( $theme_files[$template]['theme_root'] . "/$template/index.php" ) ) {
|
||||||
if ( file_exists( "$parent_theme_root/$template/index.php" ) ) {
|
$template_directory = $theme_files[$template]['theme_root'] . "/$template";
|
||||||
$template_directory = "$parent_theme_root/$template";
|
|
||||||
} else {
|
} else {
|
||||||
$wp_broken_themes[$name] = array('Name' => $name, 'Title' => $title, 'Description' => __('Template is missing.'));
|
$wp_broken_themes[$name] = array('Name' => $name, 'Title' => $title, 'Description' => __('Template is missing.'));
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue