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

This reverts the changes from [51114]. 

See #53138.

Unprops whyisjake. 

Built from https://develop.svn.wordpress.org/trunk@51127


git-svn-id: http://core.svn.wordpress.org/trunk@50736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
whyisjake 2021-06-08 23:40:00 +00:00
parent 37652569e4
commit 2e36162a20
5 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.8-alpha-51126';
$wp_version = '5.8-alpha-51127';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

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,
);