Themes: Fix markup for theme name fallbacks.
Merge of [39807] to the 4.5 branch. Built from https://develop.svn.wordpress.org/branches/4.5@39811 git-svn-id: http://core.svn.wordpress.org/branches/4.5@39749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
13d318d196
commit
c1684e38b0
|
@ -718,8 +718,9 @@ final class WP_Theme implements ArrayAccess {
|
||||||
private function markup_header( $header, $value, $translate ) {
|
private function markup_header( $header, $value, $translate ) {
|
||||||
switch ( $header ) {
|
switch ( $header ) {
|
||||||
case 'Name' :
|
case 'Name' :
|
||||||
if ( empty( $value ) )
|
if ( empty( $value ) ) {
|
||||||
$value = $this->get_stylesheet();
|
$value = esc_html( $this->get_stylesheet() );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'Description' :
|
case 'Description' :
|
||||||
$value = wptexturize( $value );
|
$value = wptexturize( $value );
|
||||||
|
|
Loading…
Reference in New Issue