wp-media / imagify-plugin

Speed up your website with lighter images without losing quality.
https://imagify.io
69 stars 24 forks source link

Restore original image shall delete all existing next-gen independent on what's enabled #833

Closed Mai-Saad closed 3 months ago

Mai-Saad commented 3 months ago

Before submitting an issue please check that you’ve completed the following steps:

Describe the bug When click restore original image, we delete only next-gen that is currently enabled instead of deleting all as same as on trunk or while delete next-gen

To Reproduce Steps to reproduce the behavior:

  1. install/activate imagify
  2. upload image => webp is created
  3. enable avif => avif created (if not created , click generate next-gen link)
  4. click restore image in media library => only avif is deleted

Expected behavior both webp and avif shall be deleted

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Acceptance Criteria (for WP Media team use only) Clear instructions for developers, to be added before the grooming