diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 5aad0968c..f782a887e 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') . '' ); ?>