Skip to content

Commit

Permalink
Switch to interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinan authored and aristath committed May 19, 2021
1 parent c4984b2 commit ce4cba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/post-terms/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ function render_block_core_post_terms( $attributes, $content, $block ) {
return '';
}

$classes = 'taxonomy-' . $attributes['term'];
$classes = "taxonomy-{$attributes['term']}";
if ( isset( $attributes['textAlign'] ) ) {
$classes .= ' has-text-align-' . $attributes['textAlign'];
$classes .= " has-text-align-{$attributes['textAlign']}";
}

$terms_links = '';
Expand Down

0 comments on commit ce4cba5

Please sign in to comment.