Make WordPress Core

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's profile 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)

7264.diff (5.4 KB) - added by mdawaffe 16 years ago.

Download all attachments as: .zip

Change History (2)

@mdawaffe
16 years ago

#1 @matt
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.