From d9f0c4579550531dc46e0e36f3362b948d1f5d6d Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Wed, 11 Jan 2017 11:12:53 +0000 Subject: [PATCH] Themes: Fix markup for theme name fallbacks. Merge of [39807] to the 3.9 branch. Built from https://develop.svn.wordpress.org/branches/3.9@39817 git-svn-id: http://core.svn.wordpress.org/branches/3.9@39755 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-theme.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-theme.php b/wp-includes/class-wp-theme.php index 7e5014c320..2572e806f2 100644 --- a/wp-includes/class-wp-theme.php +++ b/wp-includes/class-wp-theme.php @@ -654,8 +654,9 @@ final class WP_Theme implements ArrayAccess { private function markup_header( $header, $value, $translate ) { switch ( $header ) { case 'Name' : - if ( empty( $value ) ) - $value = $this->get_stylesheet(); + if ( empty( $value ) ) { + $value = esc_html( $this->get_stylesheet() ); + } break; case 'Description' : $value = wptexturize( $value );