[wp-trac] [WordPress Trac] #16129: Incorrect cap check in wp-admin/includes/comment.php : edit_comment()

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 7 04:45:50 UTC 2011


#16129: Incorrect cap check in wp-admin/includes/comment.php : edit_comment()
----------------------------+------------------
 Reporter:  westi           |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.1
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------

Comment (by nacin):

 We're into release candidate stage, which means we're no longer creating
 new strings for translators.

 Here is a string that already exists for now: "You are not allowed to edit
 comments on this post."

 That, and this needs whitespace: `if (!current_user_can( 'edit_comment',
 (int)$_POST['comment_ID'] ))` should be `if ( ! current_user_can(
 'edit_comment', (int) $_POST['comment_ID'] ) )`.

 Patch looks good with those changes.

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


More information about the wp-trac mailing list