Themes: Fix markup for theme name fallbacks.
Merge of [39807] to the 3.7 branch. Built from https://develop.svn.wordpress.org/branches/3.7@39819 git-svn-id: http://core.svn.wordpress.org/branches/3.7@39757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c094d37899
commit
30b010ce8a
|
@ -641,8 +641,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 );
|
||||
|
|
Loading…
Reference in New Issue