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:
parent
6d3207d564
commit
e95d64569c
@ -103,7 +103,7 @@ class WP_Widget_Archives extends WP_Widget {
|
|||||||
$type_attr = current_theme_supports( 'html5', 'script' ) ? '' : ' type="text/javascript"';
|
$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 ); ?>
|
<?php wp_get_archives( $dropdown_args ); ?>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
Loading…
Reference in New Issue
Block a user