WordPress 4.7.1
[autoinstalls/wordpress.git] / wp-includes / class-wp-theme.php
index f161a63186b8558aab35b18790c476e4f4422f46..00281f06a8f4e8660e4c4e83c7eb39d74dfecba6 100644 (file)
@@ -721,8 +721,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 );