From 588d46550c448399d63a1e092bbac1411c5cec17 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Fri, 31 Mar 2023 10:55:31 +0800 Subject: [PATCH] Make the block element a `
` --- packages/block-library/src/post-time-to-read/edit.js | 2 +- packages/block-library/src/post-time-to-read/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/post-time-to-read/edit.js b/packages/block-library/src/post-time-to-read/edit.js index b9092c69952b7..1689a6da71a5a 100644 --- a/packages/block-library/src/post-time-to-read/edit.js +++ b/packages/block-library/src/post-time-to-read/edit.js @@ -93,7 +93,7 @@ function PostTimeToReadEdit( { attributes, setAttributes, context } ) { } } /> -

{ minutesToReadString }

+
{ minutesToReadString }
); } diff --git a/packages/block-library/src/post-time-to-read/index.php b/packages/block-library/src/post-time-to-read/index.php index 07761e5e75904..03a745d20e642 100644 --- a/packages/block-library/src/post-time-to-read/index.php +++ b/packages/block-library/src/post-time-to-read/index.php @@ -42,7 +42,7 @@ function render_block_core_post_time_to_read( $attributes, $content, $block ) { $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $align_class_name ) ); return sprintf( - '

%2$s

', + '
%2$s
', $wrapper_attributes, $minutes_to_read_string );