Skip to content

Commit 412fca5

Browse files
authored
Merge pull request #829 from Codeinwp/bugfix/828
Fix compatibility issue elementor
2 parents 854652e + 7fc2d2d commit 412fca5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/dam.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,11 +628,11 @@ public function alter_elementor_image_size( $html, $settings, $image_size_key, $
628628

629629
$all_sizes = $this->get_all_image_sizes();
630630

631-
if ( ! isset( $all_sizes[ $settings['image_size'] ] ) ) {
631+
if ( ! isset( $all_sizes[ $image_size_key ] ) ) {
632632
return $html;
633633
}
634634

635-
return $this->replace_dam_url_args( $all_sizes[ $settings['image_size'] ], $html );
635+
return $this->replace_dam_url_args( $all_sizes[ $image_size_key ], $html );
636636
}
637637

638638
/**

0 commit comments

Comments
 (0)