Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#18104 closed defect (bug) (fixed)

deleteComment and editComment do not return the correct error message when the comment does not exist

Reported by: xknown's profile xknown Owned by: nacin's profile nacin
Milestone: 3.3 Priority: normal
Severity: normal Version: 3.2
Component: XML-RPC Keywords: has-patch commit
Focuses: Cc:

Description

As reported in the XMLRPC list:

i noticed an odd behavior today with a few methods like deleteComment and editComment. if you give them a nonexistent comment id, they say "you're not allowed to moderate this comment," even when you are allowed. it seems like they should say the comment doesn't exist

Attachments (1)

wp-class-xmlrpc-server.18104.patch (1.5 KB) - added by xknown 13 years ago.

Download all attachments as: .zip

Change History (3)

#1 @nacin
13 years ago

  • Keywords has-patch commit added
  • Milestone changed from Awaiting Review to 3.3

#2 @nacin
13 years ago

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

In [18584]:

Check for comment existence before checking edit_comment meta cap. props xknown, fixes #18104.

Note: See TracTickets for help on using tickets.