From 8631cb86cf842985355e47dc4f6593395869ef32 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Tue, 9 Aug 2016 09:09:32 +0000 Subject: [PATCH] Dashboard: Don't escape widget titles in screen reader text. Introduced in [37972]. The title for the Quick Draft widget contains HTML to provide a JS/no-JS version. Merge of [38225] to the 4.6 branch. Props SergeyBiryukov for review. See #37595. See #37594. Built from https://develop.svn.wordpress.org/branches/4.6@38226 git-svn-id: http://core.svn.wordpress.org/branches/4.6@38167 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 0de80e764d..57478a1170 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1030,7 +1030,7 @@ function do_meta_boxes( $screen, $context, $object ) { $widget_title = $box[ 'title' ]; if ( is_array( $box[ 'args' ] ) && isset( $box[ 'args' ][ '__widget_basename' ] ) ) { - $widget_title = esc_html( $box[ 'args' ][ '__widget_basename' ] ); + $widget_title = $box[ 'args' ][ '__widget_basename' ]; // Do not pass this parameter to the user callback function. unset( $box[ 'args' ][ '__widget_basename' ] ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 6904b99e13..8f0e133602 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-RC1-38224'; +$wp_version = '4.6-RC1-38226'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.