Widgets: Use correct escaping function in `WP_Widget_Archives::widget()`.

Props chintan1896, afercia.
See #50826.
Built from https://develop.svn.wordpress.org/trunk@48699


git-svn-id: http://core.svn.wordpress.org/trunk@48461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-07-31 13:15:05 +00:00
parent 078db63c4b
commit 07b4429203
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -103,7 +103,7 @@ class WP_Widget_Archives extends WP_Widget {
$type_attr = current_theme_supports( 'html5', 'script' ) ? '' : ' type="text/javascript"';
?>
<option value=""><?php echo esc_attr( $label ); ?></option>
<option value=""><?php echo esc_html( $label ); ?></option>
<?php wp_get_archives( $dropdown_args ); ?>
</select>