From dfed8d47a6070dc86bded2fe970a76f0480038be Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Tue, 9 Aug 2016 09:06:15 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@38225 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index 0de80e764d..57478a1170 100644 --- a/src/wp-admin/includes/template.php +++ b/src/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' ] ); }