Skip to content

Commit

Permalink
Make the block element a <div>
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Mar 31, 2023
1 parent cc96f74 commit 588d465
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/post-time-to-read/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function PostTimeToReadEdit( { attributes, setAttributes, context } ) {
} }
/>
</BlockControls>
<p { ...blockProps }>{ minutesToReadString }</p>
<div { ...blockProps }>{ minutesToReadString }</div>
</>
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/post-time-to-read/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
'<p %1$s>%2$s</p>',
'<div %1$s>%2$s</div>',
$wrapper_attributes,
$minutes_to_read_string
);
Expand Down

0 comments on commit 588d465

Please sign in to comment.