diff --git a/packages/block-library/src/image/index.php b/packages/block-library/src/image/index.php index 5d7815a1f2f3fb..1a5fae7ce9cbb7 100644 --- a/packages/block-library/src/image/index.php +++ b/packages/block-library/src/image/index.php @@ -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 ''; }