Ticket #7264 (closed defect: fixed)

Opened 5 months ago

Last modified 5 months ago

Ajax Deleting an object that's already been deleted should silently succeed

Reported by: mdawaffe Assigned to: anonymous
Priority: normal Milestone: 2.6
Component: General Version:
Severity: normal Keywords: needs-testing
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

7264.diff (5.4 kB) - added by mdawaffe on 07/09/08 01:51:30.

Change History

07/09/08 01:51:30 changed by mdawaffe

  • attachment 7264.diff added.

07/09/08 02:00:22 changed by matt

  • status changed from new to closed.
  • resolution set to fixed.

(In [8296]) Ajax Deleting an object that's already been deleted should silently succeed. Hat tip: mdawaffe. Fixes #7264.