diff -r 34716fd837a4 -r be944660c56a wp/wp-includes/blocks/archives.php
--- a/wp/wp-includes/blocks/archives.php Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-includes/blocks/archives.php Wed Sep 21 18:19:35 2022 +0200
@@ -17,15 +17,7 @@
function render_block_core_archives( $attributes ) {
$show_post_count = ! empty( $attributes['showPostCounts'] );
- $class = 'wp-block-archives';
-
- if ( isset( $attributes['align'] ) ) {
- $class .= " align{$attributes['align']}";
- }
-
- if ( isset( $attributes['className'] ) ) {
- $class .= " {$attributes['className']}";
- }
+ $class = '';
if ( ! empty( $attributes['displayAsDropdown'] ) ) {
@@ -66,7 +58,7 @@
break;
}
- $label = esc_attr( $label );
+ $label = esc_html( $label );
$block_content = '