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 20, 2022
1 parent 619c26d commit ee3e5f4
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 ee3e5f4

Please sign in to comment.