WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 years ago

#10620 closed defect (bug) (fixed)

Gallery of a Post wrongly displays trashed images in Editor

Reported by: hakre Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.8.4
Component: Trash Keywords: has-patch
Focuses: Cc:

Description

If you trash attachments in the admin/multimedia , the gallery of a post (in the admin) still displays the trashed images. You can test this by uploading 10 pictures and trash 5 of them. In the admin, the gallery of a post will still display 10 images instead of 5.

The gallery on the frontend does handle it properly.

The attached patch fixes this behaviour. Fixed against current SVN.

Because it is a display problem with already implemented features, I have not added it to #4529 which is about to be implemented features.

Attachments (1)

10620.patch (1.3 KB) - added by hakre 6 years ago.

Download all attachments as: .zip

Change History (5)

@hakre6 years ago

comment:1 @hakre6 years ago

  • Component changed from General to Gallery

comment:2 @hakre6 years ago

  • Summary changed from Post wrongly displays trashed images to Gallery of a Post wrongly displays trashed images in Editor
  • Version changed from 2.9 to 2.8.4

comment:3 @ryan5 years ago

  • Component changed from Gallery to Trash

comment:4 @azaozz5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

This seems to have been fixed when adding the Undo for trashed attachments.

Note: See TracTickets for help on using tickets.