Widgets: Ensure that HTML entities are converted in widget descriptions.
Fixes #53138. Props justinahinon, audrasjb. Built from https://develop.svn.wordpress.org/trunk@51114 git-svn-id: http://core.svn.wordpress.org/trunk@50723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b60a512de4
commit
81c4c4138c
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.8-alpha-51113';
|
$wp_version = '5.8-alpha-51114';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
|
@ -24,7 +24,7 @@ class WP_Widget_Archives extends WP_Widget {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$widget_ops = array(
|
$widget_ops = array(
|
||||||
'classname' => 'widget_archive',
|
'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,
|
'customize_selective_refresh' => true,
|
||||||
'show_instance_in_rest' => true,
|
'show_instance_in_rest' => true,
|
||||||
);
|
);
|
||||||
|
|
|
@ -26,7 +26,7 @@ class WP_Widget_Meta extends WP_Widget {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$widget_ops = array(
|
$widget_ops = array(
|
||||||
'classname' => 'widget_meta',
|
'classname' => 'widget_meta',
|
||||||
'description' => __( 'Login, RSS, & WordPress.org links.' ),
|
'description' => html_entity_decode( __( 'Login, RSS, & WordPress.org links.' ) ),
|
||||||
'customize_selective_refresh' => true,
|
'customize_selective_refresh' => true,
|
||||||
'show_instance_in_rest' => true,
|
'show_instance_in_rest' => true,
|
||||||
);
|
);
|
||||||
|
|
|
@ -24,7 +24,7 @@ class WP_Widget_Recent_Comments extends WP_Widget {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$widget_ops = array(
|
$widget_ops = array(
|
||||||
'classname' => 'widget_recent_comments',
|
'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,
|
'customize_selective_refresh' => true,
|
||||||
'show_instance_in_rest' => true,
|
'show_instance_in_rest' => true,
|
||||||
);
|
);
|
||||||
|
|
|
@ -24,7 +24,7 @@ class WP_Widget_Recent_Posts extends WP_Widget {
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$widget_ops = array(
|
$widget_ops = array(
|
||||||
'classname' => 'widget_recent_entries',
|
'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,
|
'customize_selective_refresh' => true,
|
||||||
'show_instance_in_rest' => true,
|
'show_instance_in_rest' => true,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue