Make WordPress Core

Opened 16 years ago

Closed 15 years ago

#15118 closed defect (bug) (fixed)

When Deleting a Post Image The Media Uploader Gets Stuck

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

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

Download all attachments as: .zip

Change History (6)

#1 @JohnONolan
16 years ago

  • Description modified (diff)

#2 @nacin
16 years ago

  • Milestone Awaiting Review → Future Release

@ocean90
15 years ago

Check if $tab value exists in media_upload_tabs()

#3 @ocean90
15 years ago

  • Keywords has-patch added
  • Milestone Future Release → 3.3

#4 @goto10
15 years ago

  • Cc dromsey@… added

#5 @azaozz
15 years ago

  • Owner set to azaozz
  • Resolution → fixed
  • Status new → 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.