diff -r 34716fd837a4 -r be944660c56a wp/wp-includes/blocks/calendar.php --- a/wp/wp-includes/blocks/calendar.php Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-includes/blocks/calendar.php Wed Sep 21 18:19:35 2022 +0200 @@ -31,12 +31,10 @@ } } - $custom_class_name = empty( $attributes['className'] ) ? '' : ' ' . $attributes['className']; - $align_class_name = empty( $attributes['align'] ) ? '' : ' ' . "align{$attributes['align']}"; - - $output = sprintf( - '
%2$s
', - esc_attr( 'wp-block-calendar' . $custom_class_name . $align_class_name ), + $wrapper_attributes = get_block_wrapper_attributes(); + $output = sprintf( + '
%2$s
', + $wrapper_attributes, get_calendar( true, false ) );