[wp-trac] [WordPress Trac] #19916: wp.deleteComment, wp.editComment shoud work for authors

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 29 17:49:27 UTC 2012


#19916: wp.deleteComment, wp.editComment shoud work for authors
--------------------------+------------------------------
 Reporter:  nprasath002   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  XML-RPC       |     Version:  3.3.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------
Changes (by maxcutler):

 * cc: max@… (added)


Comment:

 Replying to [comment:2 nprasath002]:
 > Thats what the patch does.

 Ah yes, you are correct. Trac's patch context didn't show that there's a
 call to `current_user_can( 'edit_comment', $comment_ID )` later in the
 method.

 The error message for that later check should probably be revised to be
 more accurate, but otherwise I'm +1.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19916#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list