Skip to content

Commit fa5eaec

Browse files
authored
release: FIX
- Resolved fatal error occurring with the "Image Box" widget when using Optimole DAM in Elementor. - Improve error reporting in offloading process
2 parents 0d87cec + cda3976 commit fa5eaec

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@
5656
"php": ">=7.4",
5757
"codeinwp/themeisle-sdk": "^3.3",
5858
"codeinwp/optimole-sdk": "^1.2",
59-
"enshrined/svg-sanitize": "^0.19.0"
59+
"enshrined/svg-sanitize": "^0.20.0"
6060
}
6161
}

composer.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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
/**

inc/media_offload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ public function rollback_and_update_images( $image_ids ) {
921921
do_action( 'optml_log', ' download_url error ' );
922922
}
923923

924-
self::$instance->logger->add_log( Optml_Logger::LOG_TYPE_ROLLBACK, 'Image ID: ' . $id . ' has error getting URL.' );
924+
self::$instance->logger->add_log( Optml_Logger::LOG_TYPE_ROLLBACK, 'Image ID: ' . $id . ' has error downloading URL.' );
925925
continue;
926926
}
927927

0 commit comments

Comments
 (0)