Description: Themes: Fix markup for theme name fallbacks.
Author: ocean90
Origin: upstream, https://github.com/WordPress/WordPress/commit/ce7fb2934dd111e6353784852de8aea2a938b359
Bug-Debian: https://bugs.debian.org/851310
Applied-Upstream: 4.7.1
Reviewed-by: Craig Small <csmall@debian.org>
Last-Update: 2017-01-14
--- a/wp-includes/class-wp-theme.php
+++ b/wp-includes/class-wp-theme.php
@@ -655,8 +655,9 @@
 	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 );
