Skip to content

Deleted media in Media Library still seen in the post or page. #28914

@paaljoachim

Description

@paaljoachim

Description

I tested this issue. #11501
The issue itself is not valid any longer, but the point came up that deleting an image from the media library will still show the image in the post or page if it has been used.

When deleting an image (or perhaps audio file) from the Media library it should not still be visible in a post or page, but instead show the Image block placeholder.

Step-by-step reproduction instructions

  1. Add an image to the Media Library.
  2. Go to a post. Add the Image block. Add an image. Publish the post.
  3. Go to the Media Library and delete the image used in the post.
  4. Go back to the post and notice the image is still seen as if it was not deleted.

Expected behaviour

After having deleted the image from the media library
Going back to the post or page the image should not be visible.
There should be a placeholder mentioning that the image has been deleted and that one now needs to replace it with another image.

Actually using the standard placeholder can work:

Screen Shot 2021-02-10 at 12 27 10

Actual behaviour

Deleting the image in the Media Library still shows the image in the post or page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] ImageAffects the Image Block[Status] DuplicateUsed to indicate that a current issue matches an existing one and can be closed[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions