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

This reverts the changes from [51114]. 

See #53138.

Unprops whyisjake. 


git-svn-id: https://develop.svn.wordpress.org/trunk@51127 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jake Spurlock 2021-06-08 23:38:50 +00:00
parent 387f3eebf2
commit c4373a7004
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' => html_entity_decode( __( 'A monthly archive of your site’s Posts.' ) ),
'description' => __( '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' => html_entity_decode( __( 'Login, RSS, & WordPress.org links.' ) ),
'description' => __( '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' => html_entity_decode( __( 'Your site’s most recent comments.' ) ),
'description' => __( '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' => html_entity_decode( __( 'Your site’s most recent Posts.' ) ),
'description' => __( 'Your site’s most recent Posts.' ),
'customize_selective_refresh' => true,
'show_instance_in_rest' => true,
);