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

Props chintan1896, afercia.
See #50826.

git-svn-id: https://develop.svn.wordpress.org/trunk@48699 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-07-31 13:13:36 +00:00
parent 6d3207d564
commit e95d64569c
1 changed files with 1 additions and 1 deletions

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>