Skip to content

Commit fe1ef97

Browse files
committed
Widgets: Ensure that HTML entities are converted in widget descriptions.
Fixes #53138. Props justinahinon, audrasjb. git-svn-id: https://develop.svn.wordpress.org/trunk@51114 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f64478d commit fe1ef97

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/wp-includes/widgets/class-wp-widget-archives.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class WP_Widget_Archives extends WP_Widget {
2424
public function __construct() {
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,
3030
);

src/wp-includes/widgets/class-wp-widget-meta.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class WP_Widget_Meta extends WP_Widget {
2626
public function __construct() {
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,
3232
);

src/wp-includes/widgets/class-wp-widget-recent-comments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class WP_Widget_Recent_Comments extends WP_Widget {
2424
public function __construct() {
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,
3030
);

src/wp-includes/widgets/class-wp-widget-recent-posts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class WP_Widget_Recent_Posts extends WP_Widget {
2424
public function __construct() {
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,
3030
);

0 commit comments

Comments
 (0)