From 9970c6ca5a554fcbc7e4c2120ea962d39f3cc71d Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Tue, 9 Aug 2016 09:07:30 +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. Props SergeyBiryukov for review. See #37595. Fixes #37594. Built from https://develop.svn.wordpress.org/trunk@38225 git-svn-id: http://core.svn.wordpress.org/trunk@38166 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 ad7113f04a..29f433837e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38223'; +$wp_version = '4.7-alpha-38225'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.