woocommerce / woocommerce

A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
https://woocommerce.com
9.39k stars 10.76k forks source link

Deleted images leave blank spaces in product gallery #39606

Open kaushikasomaiya opened 1 year ago

kaushikasomaiya commented 1 year ago

Prerequisites

Describe the bug

6583859-zen

When an image is deleted from Media, it is detached from the featured image which is expected.

But if the image is a part of the product gallery, it shows up as blank under the product's gallery area:

https://d.pr/i/VGKW8G

Video of the issue: https://d.pr/v/jR6EvT

Expected behavior

Image should be detached from the product's gallery when it is deleted.

Actual behavior

Image is only detached from the product's gallery when product edit page is visited again or product is updated.

Steps to reproduce

  1. Create a simple product with a featured image and a few gallery images
  2. View the product page
  3. Delete one of the gallery images in between from Media library
  4. Refresh product page to see the issue.

WordPress Environment

NA

Isolating the problem

github-actions[bot] commented 1 year ago

Hi @kaushikasomaiya,

Thank you for opening the issue! It requires further feedback from the WooCommerce Core team.

We are adding the needs developer feedback label to this issue so that the Core team could take a look.

Please note it may take a few days for them to get to this issue. Thank you for your patience.