Make WordPress Core

Changeset 51127


Ignore:
Timestamp:
06/08/2021 11:38:50 PM (4 years ago)
Author:
whyisjake
Message:

Widgets: Don't decode HTML entities ahead of the widget constructor.

This reverts the changes from [51114].

See #53138.

Unprops whyisjake.

Location:
trunk/src/wp-includes/widgets
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-archives.php

    r51114 r51127  
    2525        $widget_ops = array(
    2626            'classname'                   => 'widget_archive',
    27             'description'                 => html_entity_decode( __( 'A monthly archive of your site’s Posts.' ) ),
     27            'description'                 => __( 'A monthly archive of your site’s Posts.' ),
    2828            'customize_selective_refresh' => true,
    2929            'show_instance_in_rest'       => true,
  • trunk/src/wp-includes/widgets/class-wp-widget-meta.php

    r51114 r51127  
    2727        $widget_ops = array(
    2828            'classname'                   => 'widget_meta',
    29             'description'                 => html_entity_decode( __( 'Login, RSS, & WordPress.org links.' ) ),
     29            'description'                 => __( 'Login, RSS, & WordPress.org links.' ),
    3030            'customize_selective_refresh' => true,
    3131            'show_instance_in_rest'       => true,
  • trunk/src/wp-includes/widgets/class-wp-widget-recent-comments.php

    r51114 r51127  
    2525        $widget_ops = array(
    2626            'classname'                   => 'widget_recent_comments',
    27             'description'                 => html_entity_decode( __( 'Your site’s most recent comments.' ) ),
     27            'description'                 => __( 'Your site’s most recent comments.' ),
    2828            'customize_selective_refresh' => true,
    2929            'show_instance_in_rest'       => true,
  • trunk/src/wp-includes/widgets/class-wp-widget-recent-posts.php

    r51114 r51127  
    2525        $widget_ops = array(
    2626            'classname'                   => 'widget_recent_entries',
    27             'description'                 => html_entity_decode( __( 'Your site’s most recent Posts.' ) ),
     27            'description'                 => __( 'Your site’s most recent Posts.' ),
    2828            'customize_selective_refresh' => true,
    2929            'show_instance_in_rest'       => true,
Note: See TracChangeset for help on using the changeset viewer.