mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 23:27:04 +00:00
Editor: Update WordPress packages for 6.0 RC 2 (part 2)
Includes cherry-picked commit from the Gutenberg plugin that fix a bug discovere just before WordPress 6.0 RC 2. Props hellofromtonya, zieladam, kebbet. See #55567. git-svn-id: https://develop.svn.wordpress.org/trunk@53378 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user