Skip to content

Commit 2cf3afa

Browse files
author
Marco Pereirinha
committed
Do not deliver SVGs when image delivery is disabled
1 parent 1d9f8dc commit 2cf3afa

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 && $svg->is_active() && $svg::is_svg( $attachment_id ) ) {
372+
if ( ! $is && $svg->is_active() && $svg::is_svg( $attachment_id ) && 'on' === $this->plugin->settings->get_value( 'image_delivery' ) ) {
373373
$is = true;
374374
}
375375

0 commit comments

Comments
 (0)