WordPress.org

Make WordPress Core

Changeset 38225 for trunk


Ignore:
Timestamp:
08/09/2016 09:06:15 AM (3 years ago)
Author:
ocean90
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r38028 r38225  
    10311031
    10321032                        if ( is_array( $box[ 'args' ] ) && isset( $box[ 'args' ][ '__widget_basename' ] ) ) {
    1033                             $widget_title = esc_html( $box[ 'args' ][ '__widget_basename' ] );
     1033                            $widget_title = $box[ 'args' ][ '__widget_basename' ];
    10341034                            // Do not pass this parameter to the user callback function.
    10351035                            unset( $box[ 'args' ][ '__widget_basename' ] );
Note: See TracChangeset for help on using the changeset viewer.