Skip to content

Commit

Permalink
amend/strip whitespaces in render_block_core_cover
Browse files Browse the repository at this point in the history
  • Loading branch information
navigatrum committed May 18, 2022
1 parent ff3eaab commit a219c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/cover/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function render_block_core_cover( $attributes, $content ) {
$content = str_replace(
'</span><div',
'</span>' . $image . '<div',
$content
preg_replace( '/<\/span>(\s+)?<div/', '</span><div', $content, 1 )
);

} else {
Expand Down

0 comments on commit a219c4c

Please sign in to comment.