From 9fd159fd064a1a6b2ed8d04edbe7fe6fca3f193e Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Mon, 21 Sep 2020 10:24:09 +0200 Subject: [PATCH] Use esc_html rather than esc_attr for archives (#25476) --- packages/block-library/src/archives/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/archives/index.php b/packages/block-library/src/archives/index.php index d75859529ee084..3b7b2d1d39bb9d 100644 --- a/packages/block-library/src/archives/index.php +++ b/packages/block-library/src/archives/index.php @@ -58,7 +58,7 @@ function render_block_core_archives( $attributes ) { break; } - $label = esc_attr( $label ); + $label = esc_html( $label ); $block_content = '