Skip to content

Commit

Permalink
Use a single string concatenation method
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed May 19, 2022
1 parent 140528b commit b2c0bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/post-author-name/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function render_block_core_post_author_name( $attributes, $content, $block ) {

$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $align_class_name ) );

return sprintf( '<div %1$s>', $wrapper_attributes ) . $author_name . '</div>';
return sprintf( '<div %1$s>%2$s</div>', $wrapper_attributes, $author_name );
}

/**
Expand Down

0 comments on commit b2c0bfe

Please sign in to comment.