Skip to content

Commit

Permalink
trim the classnames
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Jan 25, 2023
1 parent a763205 commit 30771d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/post-template/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function render_block_core_post_template( $attributes, $content, $block ) {
$classnames .= ' has-link-color';
}

$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classnames ) );
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => trim( $classnames ) ) );

$content = '';
while ( $query->have_posts() ) {
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/site-title/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function render_block_core_site_title( $attributes ) {
esc_html( $site_title )
);
}
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes ) );
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => trim( $classes ) ) );

return sprintf(
'<%1$s %2$s>%3$s</%1$s>',
Expand Down

0 comments on commit 30771d9

Please sign in to comment.