Skip to content

Commit bd6b68e

Browse files
Fix: missing className on latest comments block (#13834)
1 parent fbc9f89 commit bd6b68e

File tree

1 file changed

+3
-0
lines changed
  • packages/block-library/src/latest-comments

1 file changed

+3
-0
lines changed

packages/block-library/src/latest-comments/index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ function render_block_core_latest_comments( $attributes = array() ) {
117117
}
118118

119119
$class = 'wp-block-latest-comments';
120+
if ( ! empty( $attributes['className'] ) ) {
121+
$class .= ' ' . $attributes['className'];
122+
}
120123
if ( isset( $attributes['align'] ) ) {
121124
$class .= " align{$attributes['align']}";
122125
}

0 commit comments

Comments
 (0)