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
This commit is contained in:
Dominik Schilling 2016-08-09 09:09:32 +00:00
parent 1bbe957cc3
commit 8631cb86cf
2 changed files with 2 additions and 2 deletions

View File

@ -1030,7 +1030,7 @@ function do_meta_boxes( $screen, $context, $object ) {
$widget_title = $box[ 'title' ]; $widget_title = $box[ 'title' ];
if ( is_array( $box[ 'args' ] ) && isset( $box[ 'args' ][ '__widget_basename' ] ) ) { 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. // Do not pass this parameter to the user callback function.
unset( $box[ 'args' ][ '__widget_basename' ] ); unset( $box[ 'args' ][ '__widget_basename' ] );
} }

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.