Make WordPress Core

Opened 14 years ago

Closed 13 years ago

#15118 closed defect (bug) (fixed)

When Deleting a Post Image The Media Uploader Gets Stuck

Reported by: johnonolan's profile JohnONolan Owned by: azaozz's profile 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.


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 13 years ago.
Check if $tab value exists in media_upload_tabs()

Download all attachments as: .zip

Change History (6)

#1 @JohnONolan
14 years ago

  • Description modified (diff)

#2 @nacin
14 years ago

  • Milestone changed from Awaiting Review to Future Release

13 years ago

Check if $tab value exists in media_upload_tabs()

#3 @ocean90
13 years ago

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

#4 @goto10
13 years ago

  • Cc dromsey@… added

#5 @azaozz
13 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.