Skip to content

Commit ce7fb29

Browse files
committed
Themes: Fix markup for theme name fallbacks.
Built from https://develop.svn.wordpress.org/trunk@39807 git-svn-id: http://core.svn.wordpress.org/trunk@39745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent cea9e2d commit ce7fb29

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Diff for: wp-includes/class-wp-theme.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,9 @@ private function sanitize_header( $header, $value ) {
737737
private function markup_header( $header, $value, $translate ) {
738738
switch ( $header ) {
739739
case 'Name' :
740-
if ( empty( $value ) )
741-
$value = $this->get_stylesheet();
740+
if ( empty( $value ) ) {
741+
$value = esc_html( $this->get_stylesheet() );
742+
}
742743
break;
743744
case 'Description' :
744745
$value = wptexturize( $value );

Diff for: wp-includes/version.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @global string $wp_version
66
*/
7-
$wp_version = '4.8-alpha-39795';
7+
$wp_version = '4.8-alpha-39807';
88

99
/**
1010
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)