mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-06 05:19:32 +00:00
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
This commit is contained in:
parent
8d2a900277
commit
d9f0c45795
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user