mirror of
git://develop.git.wordpress.org/
synced 2025-04-07 13:43:25 +02:00
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
This commit is contained in:
parent
32b55e7e7a
commit
dfed8d47a6
@ -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' ] );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user