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 authored and youknowriad committed Mar 6, 2019
1 parent 9650d97 commit baa90ac
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 baa90ac

Please sign in to comment.