From 81c4c4138c303724072411a03cce2b01ddc9324b Mon Sep 17 00:00:00 2001 From: whyisjake Date: Tue, 8 Jun 2021 22:17:57 +0000 Subject: [PATCH] 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 --- wp-includes/version.php | 2 +- wp-includes/widgets/class-wp-widget-archives.php | 2 +- wp-includes/widgets/class-wp-widget-meta.php | 2 +- wp-includes/widgets/class-wp-widget-recent-comments.php | 2 +- wp-includes/widgets/class-wp-widget-recent-posts.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index ddff76c222..3c3bc67d7b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @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. diff --git a/wp-includes/widgets/class-wp-widget-archives.php b/wp-includes/widgets/class-wp-widget-archives.php index 3f19ebadf7..261c87df01 100644 --- a/wp-includes/widgets/class-wp-widget-archives.php +++ b/wp-includes/widgets/class-wp-widget-archives.php @@ -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, ); diff --git a/wp-includes/widgets/class-wp-widget-meta.php b/wp-includes/widgets/class-wp-widget-meta.php index 6dd793512d..7fd0501654 100644 --- a/wp-includes/widgets/class-wp-widget-meta.php +++ b/wp-includes/widgets/class-wp-widget-meta.php @@ -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, ); diff --git a/wp-includes/widgets/class-wp-widget-recent-comments.php b/wp-includes/widgets/class-wp-widget-recent-comments.php index 6461a17ad6..8568053de0 100644 --- a/wp-includes/widgets/class-wp-widget-recent-comments.php +++ b/wp-includes/widgets/class-wp-widget-recent-comments.php @@ -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, ); diff --git a/wp-includes/widgets/class-wp-widget-recent-posts.php b/wp-includes/widgets/class-wp-widget-recent-posts.php index ef8f4c4624..330c28e599 100644 --- a/wp-includes/widgets/class-wp-widget-recent-posts.php +++ b/wp-includes/widgets/class-wp-widget-recent-posts.php @@ -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, );