Ticket #16129: 16129.patch
File 16129.patch, 541 bytes (added by , 14 years ago) |
---|
-
comment.php
34 34 function edit_comment() { 35 35 $comment_post_ID = (int) $_POST['comment_post_ID']; 36 36 37 if (!current_user_can( 'edit_ post', $comment_post_ID ))37 if (!current_user_can( 'edit_comment', $comment_post_ID )) 38 38 wp_die( __('You are not allowed to edit comments on this post, so you cannot edit this comment.' ) ); 39 39 40 40 $_POST['comment_author'] = $_POST['newcomment_author'];