Make WordPress Core

Opened 15 years ago

Closed 15 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 Owned by: nacin
Priority: normal Milestone: 3.3
Component: XML-RPC Version: 3.2
Severity: normal Keywords: has-patch commit
Cc: Focuses:

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 15 years ago.

Download all attachments as: .zip

Change History (3)

#1 @nacin
15 years ago

  • Keywords has-patch commit added
  • Milestone Awaiting Review3.3

#2 @nacin
15 years ago

  • Owner set to nacin
  • Resolutionfixed
  • Status newclosed

In [18584]:

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

Note: See TracTickets for help on using tickets.