mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
f64478d67c
commit
fe1ef97ef3
@ -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,
|
||||
);
|
||||
|
||||
@ -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,
|
||||
);
|
||||
|
||||
@ -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,
|
||||
);
|
||||
|
||||
@ -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,
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user