From 65099d16b67e681b247048ac20eee66451a40c97 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 21 Apr 2012 21:00:24 +0000 Subject: [PATCH] A child theme with a missing parent might be is_child_theme() but not have a valid parent() object, so we need to check parent() too. see #20103. git-svn-id: https://develop.svn.wordpress.org/trunk@20558 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/theme-editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 5aad0968ce..f782a887eb 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -164,7 +164,7 @@ if ( $allowed_files ) : if ( $has_templates || $theme->is_child_theme() ) : ?>

- is_child_theme() ) : ?> + is_child_theme() && $theme->parent() ) : ?>

get_template() ) ) . '">' . $theme->parent()->display('Name') . '' ); ?>