Make WordPress Core

Changeset 38226


Ignore:
Timestamp:
08/09/2016 09:08:13 AM (9 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.

Merge of [38225] to the 4.6 branch.

Props SergeyBiryukov for review.
See #37595.
See #37594.

Location:
branches/4.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.6

  • branches/4.6/src/wp-admin/includes/template.php

    r38028 r38226  
    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.