Skip to content

Deleting an image via the media library is not reflected. #23262

@Fujix1

Description

@Fujix1

Deleting an image permanently on the media library is not reflected to the related image block.

Step to reproduce

  1. Click the "Replace" menu item to open the media library.
  2. Delete the image permanently.
  3. Click the X button to close the media libarary.
  4. The image is still displayed in the image block.
  5. Actually the image is not deleted and the frontend still has it.

Expected behavior
The image should be removed from the image block in sync with the media library, and the image itself is to be deleted from the server.

Screenshots
Animation

Editor version (please complete the following information):

  • WordPress version: 5.4.2
  • Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? Both.
  • If the Gutenberg plugin is installed, which version is it? v8.3.0

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 83.0.4103.106

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] ImageAffects the Image Block[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions