[wp-trac] [WordPress Trac] #15489: Ajaxify Post/page trashing

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 23 13:07:49 UTC 2010


#15489: Ajaxify Post/page trashing
----------------------------+-----------------------------
 Reporter:  hew             |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  3.2-early       |
----------------------------+-----------------------------

Comment (by garyc40):

 Patch attached to ajaxify post/page trash/untrash/delete.

 A few things to note:

 - In {{{admin-ajax.php}}}, there's already a switch case for
 {{{$_POST['action'] == 'delete-post'}}}. The media editor is using ajax
 action 'delete-post', and I haven't reviewed the code to see if any other
 component uses 'delete-post'. In order to avoid breaking existing stuff, I
 named the new ajax action "delete-post-list-item".

 - The javascript file that I added post trash / untrash / deletion
 handlers is inline-edit-post.dev.js . I think it's more proper that we
 rename it something like "edit-posts.dev.js", to be consistent with "edit-
 comments.dev.js", which does the same thing, but for comments.

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


More information about the wp-trac mailing list