Skip to content

Commit

Permalink
Auto enable all settings when image optimization is turned on
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshenoy99 committed Dec 27, 2024
1 parent 5def7a1 commit 459e887
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/imageOptimizationSettings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ const ImageOptimizationSettings = ( { methods } ) => {
case 'enabled':
updatedSettings.enabled = value;
updatedSettings.auto_optimized_uploaded_images.enabled = value;
updatedSettings.auto_optimized_uploaded_images.auto_delete_original_image =
value;
updatedSettings.bulk_optimization = value;
updatedSettings.lazy_loading.enabled = value;
updatedSettings.prefer_optimized_image_when_exists = value;
Expand Down

0 comments on commit 459e887

Please sign in to comment.