Skip to content

Commit

Permalink
Fix: missing className on latest comments block (#13834)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Feb 14, 2019
1 parent fbc9f89 commit bd6b68e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-library/src/latest-comments/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ function render_block_core_latest_comments( $attributes = array() ) {
}

$class = 'wp-block-latest-comments';
if ( ! empty( $attributes['className'] ) ) {
$class .= ' ' . $attributes['className'];
}
if ( isset( $attributes['align'] ) ) {
$class .= " align{$attributes['align']}";
}
Expand Down

0 comments on commit bd6b68e

Please sign in to comment.