Skip to content

Commit 1640ca2

Browse files
author
Marco Pereirinha
committed
Fix a regression when bypassing delivering images
1 parent ff05644 commit 1640ca2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/class-delivery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public function is_deliverable( $attachment_id ) {
369369

370370
$svg = $this->plugin->get_component( 'svg' );
371371

372-
if ( ! $is && wp_attachment_is_image( $attachment_id ) && $svg->is_active() ) {
372+
if ( ! $is && $svg->is_active() && $svg::is_svg( $attachment_id ) ) {
373373
$is = true;
374374
}
375375

0 commit comments

Comments
 (0)