WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 8 years ago

#15118 closed defect (bug) (fixed)

When Deleting a Post Image The Media Uploader Gets Stuck

Reported by: JohnONolan Owned by: azaozz
Milestone: 3.3 Priority: low
Severity: minor Version: 3.0.1
Component: Media Keywords: has-patch
Focuses: Cc:

Description (last modified by JohnONolan)

When deleting the one (and only) image from the Gallery section of a post, the media uploader switches back to the "from computer" tab, but the content displayed remains from the empty "Gallery" tab.

Screenshot: http://cl.ly/2pbU

Steps to reproduce:

  • Write a new post
  • Upload an image
  • Close the media uploader
  • Re-open media uploader
  • Browser to Gallery tab
  • Delete image

Interestingly, the bug does not appear if you leave the media uploader open and delete the image immediately.

Attachments (1)

15118.patch (524 bytes) - added by ocean90 8 years ago.
Check if $tab value exists in media_upload_tabs()

Download all attachments as: .zip

Change History (6)

#1 @JohnONolan
9 years ago

  • Description modified (diff)

#2 @nacin
9 years ago

  • Milestone changed from Awaiting Review to Future Release

@ocean90
8 years ago

Check if $tab value exists in media_upload_tabs()

#3 @ocean90
8 years ago

  • Keywords has-patch added
  • Milestone changed from Future Release to 3.3

#4 @goto10
8 years ago

  • Cc dromsey@… added

#5 @azaozz
8 years ago

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

In [18850]:

Prevent the uploader getting stuck when deleting the only image from the gallery, props ocean90, fixes #15118

Note: See TracTickets for help on using tickets.