Opened 16 years ago
Closed 16 years ago
#7264 closed defect (bug) (fixed)
Ajax Deleting an object that's already been deleted should silently succeed
Reported by: | mdawaffe | Owned by: | |
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | needs-testing |
Focuses: | Cc: |
Description
When AJAX deleting a comment, say, that has just been deleted by another user, WP throws the comment back at you in red and says "An unidentified error has occurred".
Almost all the time when that error happens, it's because the comment you're trying to delete is already gone... so it's not really error worthy.
Attached checks to see if to-be-deleted objects are already gone and silently ajax returns "success" when deleted.
Also checks to see if the current comment status is the same as the requested comment status and silently succeeds there as well.
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [8296]) Ajax Deleting an object that's already been deleted should silently succeed. Hat tip: mdawaffe. Fixes #7264.