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
This commit is contained in:
Jake Spurlock 2021-06-08 22:16:03 +00:00
parent f64478d67c
commit fe1ef97ef3
4 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ class WP_Widget_Archives extends WP_Widget {
public function __construct() {
$widget_ops = array(
'classname' => 'widget_archive',
'description' => __( 'A monthly archive of your site’s Posts.' ),
'description' => html_entity_decode( __( 'A monthly archive of your site’s Posts.' ) ),
'customize_selective_refresh' => true,
'show_instance_in_rest' => true,
);

View File

@ -26,7 +26,7 @@ class WP_Widget_Meta extends WP_Widget {
public function __construct() {
$widget_ops = array(
'classname' => 'widget_meta',
'description' => __( 'Login, RSS, & WordPress.org links.' ),
'description' => html_entity_decode( __( 'Login, RSS, & WordPress.org links.' ) ),
'customize_selective_refresh' => true,
'show_instance_in_rest' => true,
);

View File

@ -24,7 +24,7 @@ class WP_Widget_Recent_Comments extends WP_Widget {
public function __construct() {
$widget_ops = array(
'classname' => 'widget_recent_comments',
'description' => __( 'Your site’s most recent comments.' ),
'description' => html_entity_decode( __( 'Your site’s most recent comments.' ) ),
'customize_selective_refresh' => true,
'show_instance_in_rest' => true,
);

View File

@ -24,7 +24,7 @@ class WP_Widget_Recent_Posts extends WP_Widget {
public function __construct() {
$widget_ops = array(
'classname' => 'widget_recent_entries',
'description' => __( 'Your site’s most recent Posts.' ),
'description' => html_entity_decode( __( 'Your site’s most recent Posts.' ) ),
'customize_selective_refresh' => true,
'show_instance_in_rest' => true,
);