Skip to content

Commit

Permalink
Check image src with falsy value (WordPress#66004)
Browse files Browse the repository at this point in the history
Co-authored-by: SantosGuillamot <[email protected]>
Co-authored-by: gziolo <[email protected]>
  • Loading branch information
3 people authored and karthick-murugan committed Nov 13, 2024
1 parent eba998e commit 6bf021c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/image/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function render_block_core_image( $attributes, $content, $block ) {

$p = new WP_HTML_Tag_Processor( $content );

if ( ! $p->next_tag( 'img' ) || null === $p->get_attribute( 'src' ) ) {
if ( ! $p->next_tag( 'img' ) || ! $p->get_attribute( 'src' ) ) {
return '';
}

Expand Down

0 comments on commit 6bf021c

Please sign in to comment.