diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index f782a887e..3ea3c4ae5 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -161,10 +161,10 @@ foreach ( wp_get_themes( array( 'errors' => null ) ) as $a_stylesheet => $a_them
is_child_theme() ) : + if ( $has_templates || $theme->parent() ) : ?>

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

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