mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
Themes: Fix markup for theme name fallbacks.
Merge of [39807] to the 4.5 branch. git-svn-id: https://develop.svn.wordpress.org/branches/4.5@39811 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e1cba619ea
commit
4fd11d2a54
@ -718,8 +718,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