Used the search feature to ensure that the bug hasn’t been reported before
Describe the bug
Clicking delete Next-Gen images or Generate Next-Gen images isnot working (with/without create AVIF enabled)
To Reproduce
Steps to reproduce the behavior:
Enable AVIF
In the media library click ' Generate Next-Gen' link for any image not having AVIF (if there were AVIF, delete it in upload then refresh the media library page or simply click 'Delete Next-Gen images'
Expected behavior
1- Clicking Generate Next-Gen images => generate AVIF/WebP based on enabled feature
2- Clicking Delete Next-Gen images => delete both webp and AVIF independent on which is enabled
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Working fine on the trunk for expected 1,2.
Acceptance Criteria (for WP Media team use only)
Clear instructions for developers, to be added before the grooming
Generate Next-Gen images link is displayed if Next-Gen images arenot generated
Delete Next-Gen images link is displed if Next-Gen images are already generated
Links are functional i.e deleting or generating the Next-Gen images
Link Generate/delete Next-Gen is there in the media library list and in the edit image
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug Clicking delete Next-Gen images or Generate Next-Gen images isnot working (with/without create AVIF enabled)
To Reproduce Steps to reproduce the behavior:
Expected behavior 1- Clicking Generate Next-Gen images => generate AVIF/WebP based on enabled feature 2- Clicking Delete Next-Gen images => delete both webp and AVIF independent on which is enabled
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