[wp-trac] [WordPress Trac] #22524: "Edit" and "Delete" for the media modal

WordPress Trac noreply at wordpress.org
Sat Nov 24 14:08:07 UTC 2012


#22524: "Edit" and "Delete" for the media modal
--------------------------+------------------
 Reporter:  nacin         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  low           |   Milestone:  3.5
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------

Comment (by merty):

 Replying to [comment:3 miqrogroove]:
 > I have concerns about this patch.  It doesn't include the JS
 confirmation prompt or any kind of AYS feature.  It also seems strange to
 navigate away from a modal window just to delete one image.

 You're right, added the prompt.

 Replying to [comment:4 miqrogroove]:
 > Patch is broken anyway.  It sends me to
 >
 > {{{
 > /wp-admin/post.php?action=delete&post=118&_wpnonce=f731a7d735
 > }}}
 >
 > and displays "Please try again."

 See my first comment above: "This seems to be the only way but naturally,
 & is being replaced with &"

 This is what can be done if we just use what we currently have. The
 correct way of doing the deletion is to write a JS function to handle it
 which triggers the deletion and removes the item from the grid, without
 navigating away from the modal window.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22524#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list