From 6e0226be1295fcd3ea2021b9d310226e5decc9bf Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Wed, 10 Jun 2020 16:46:50 +0000 Subject: [PATCH] Themes: Ensure a broken theme name is returned properly. Props: sstoqnov. git-svn-id: https://develop.svn.wordpress.org/trunk@47950 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/themes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/themes.php b/src/wp-admin/themes.php index e87f8edd6e..0f632d06cc 100644 --- a/src/wp-admin/themes.php +++ b/src/wp-admin/themes.php @@ -461,7 +461,7 @@ if ( ! is_multisite() && $broken_themes ) { - get( 'Name' ) ? $broken_theme->display( 'Name' ) : $broken_theme->get_stylesheet(); ?> + get( 'Name' ) ? $broken_theme->display( 'Name' ) : esc_html( $broken_theme->get_stylesheet() ); ?> errors()->get_error_message(); ?>