Skip to content

Commit

Permalink
Comments Title: Fix post title translation (#40972)
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed May 10, 2022
1 parent 767a07e commit c8a658b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/block-library/src/comments-title/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ function render_block_core_comments_title( $attributes ) {
$show_comments_count = ! empty( $attributes['showCommentsCount'] ) && $attributes['showCommentsCount'];
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $align_class_name ) );
$comments_count = get_comments_number();
$post_title = '“' . get_the_title() . '”';
$tag_name = 'h2';
/* translators: %s: Post title. */
$post_title = sprintf( __( '“%s”' ), get_the_title() );
$tag_name = 'h2';
if ( isset( $attributes['level'] ) ) {
$tag_name = 'h' . $attributes['level'];
}
Expand Down

0 comments on commit c8a658b

Please sign in to comment.