Skip to content

Commit

Permalink
Merge pull request #829 from Codeinwp/bugfix/828
Browse files Browse the repository at this point in the history
Fix compatibility issue elementor
  • Loading branch information
selul authored Sep 9, 2024
2 parents 854652e + 7fc2d2d commit 412fca5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/dam.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

/**
Expand Down

0 comments on commit 412fca5

Please sign in to comment.