diff --git a/inc/dam.php b/inc/dam.php index d341f1b6..c457e20f 100644 --- a/inc/dam.php +++ b/inc/dam.php @@ -628,11 +628,11 @@ public function alter_elementor_image_size( $html, $settings, $image_size_key, $ $all_sizes = $this->get_all_image_sizes(); - if ( ! isset( $all_sizes[ $settings['image_size'] ] ) ) { + if ( ! isset( $all_sizes[ $image_size_key ] ) ) { return $html; } - return $this->replace_dam_url_args( $all_sizes[ $settings['image_size'] ], $html ); + return $this->replace_dam_url_args( $all_sizes[ $image_size_key ], $html ); } /**