From efc07abeb3876d2825c727b587c7ff21139460dc Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Wed, 11 Jan 2017 11:09:35 +0000 Subject: [PATCH] Themes: Fix markup for theme name fallbacks. Merge of [39807] to the 4.6 branch. Built from https://develop.svn.wordpress.org/branches/4.6@39810 git-svn-id: http://core.svn.wordpress.org/branches/4.6@39748 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-theme.php | 5 +++-- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-theme.php b/wp-includes/class-wp-theme.php index 40af39df46..35c5650339 100644 --- a/wp-includes/class-wp-theme.php +++ b/wp-includes/class-wp-theme.php @@ -720,8 +720,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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 8ac911c241..b3f8b0bc7e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6.2-alpha-39797'; +$wp_version = '4.6.2-alpha-39810'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.