Skip to content

Commit 165fa77

Browse files
Fix optimised image issue with the WC cart page
1 parent 854652e commit 165fa77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/tag_replacer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ public function init() {
4949

5050
parent::init();
5151
add_filter( 'optml_content_images_tags', [ $this, 'process_image_tags' ], 1, 2 );
52+
add_filter( 'image_downsize', [ $this, 'filter_image_downsize' ], PHP_INT_MAX, 3 );
5253

5354
if ( $this->settings->use_lazyload() ) {
5455
return;
5556
}
5657

5758
add_filter( 'optml_tag_replace', [ $this, 'regular_tag_replace' ], 1, 6 );
58-
add_filter( 'image_downsize', [ $this, 'filter_image_downsize' ], PHP_INT_MAX, 3 );
5959
add_filter( 'wp_calculate_image_srcset', [ $this, 'filter_srcset_attr' ], PHP_INT_MAX, 5 );
6060
add_filter( 'wp_calculate_image_sizes', [ $this, 'filter_sizes_attr' ], 1, 2 );
6161
}

0 commit comments

Comments
 (0)