Themes: Fix markup for theme name fallbacks.

Merge of [39807] to the 4.4 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.4@39812 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2017-01-11 11:08:51 +00:00
parent 60c9de9c13
commit 6fa441f541

View File

@ -709,8 +709,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 );