Make WordPress Core

Changeset 51114


Ignore:
Timestamp:
06/08/2021 10:16:03 PM (5 years ago)
Author:
whyisjake
Message:

Widgets: Ensure that HTML entities are converted in widget descriptions.

Fixes #53138.

Props justinahinon, audrasjb.

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

Legend:

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

    r50995 r51114  
    2525                $widget_ops = array(
    2626                        'classname'                   => 'widget_archive',
    27                         'description'                 => __( 'A monthly archive of your site’s Posts.' ),
     27                        'description'                 => html_entity_decode( __( '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

    r50995 r51114  
    2727                $widget_ops = array(
    2828                        'classname'                   => 'widget_meta',
    29                         'description'                 => __( 'Login, RSS, & WordPress.org links.' ),
     29                        'description'                 => html_entity_decode( __( '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

    r50995 r51114  
    2525                $widget_ops = array(
    2626                        'classname'                   => 'widget_recent_comments',
    27                         'description'                 => __( 'Your site’s most recent comments.' ),
     27                        'description'                 => html_entity_decode( __( '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

    r50995 r51114  
    2525                $widget_ops = array(
    2626                        'classname'                   => 'widget_recent_entries',
    27                         'description'                 => __( 'Your site’s most recent Posts.' ),
     27                        'description'                 => html_entity_decode( __( '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.