Skip to content

Commit

Permalink
Use esc_html rather than esc_attr for archives (#25476)
Browse files Browse the repository at this point in the history
  • Loading branch information
audrasjb authored Sep 21, 2020
1 parent cad6630 commit 9fd159f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/archives/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function render_block_core_archives( $attributes ) {
break;
}

$label = esc_attr( $label );
$label = esc_html( $label );

$block_content = '<label class="screen-reader-text" for="' . $dropdown_id . '">' . $title . '</label>
<select id="' . $dropdown_id . '" name="archive-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;">
Expand Down

0 comments on commit 9fd159f

Please sign in to comment.