"Trash" updates, props caesarsgrunt, see #4529

git-svn-id: https://develop.svn.wordpress.org/trunk@11841 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-08-19 08:35:24 +00:00
parent 34deab141b
commit 782977afbf
12 changed files with 54 additions and 24 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ function prepareMediaItemInit(fileObj) {
// Tell the server to delete it. TODO: handle exceptions
jQuery.ajax({url:'admin-ajax.php',type:'post',success:deleteSuccess,error:deleteError,id:fileObj.id,data:{
id : this.id.replace(/[^0-9]/g,''),
action : 'delete-post',
action : 'trash-post',
_ajax_nonce : this.href.replace(/^.*wpnonce=/,'')}
});
return false;
File diff suppressed because one or more lines are too long