Ticket #16129: 16129 - 3.2.patch
File 16129 - 3.2.patch, 791 bytes (added by , 14 years ago) |
---|
-
comment.php
32 32 * @since 2.0.0 33 33 */ 34 34 function edit_comment() { 35 $comment_post_ID = (int) $_POST['comment_post_ID']; 35 36 if ( ! current_user_can( 'edit_comment', (int) $_POST['comment_ID'] ) ) 37 wp_die ( __( 'You are not allowed to edit comments on this post.' ) ); 36 38 37 if (!current_user_can( 'edit_post', $comment_post_ID ))38 wp_die( __('You are not allowed to edit comments on this post, so you cannot edit this comment.' ) );39 40 39 $_POST['comment_author'] = $_POST['newcomment_author']; 41 40 $_POST['comment_author_email'] = $_POST['newcomment_author_email']; 42 41 $_POST['comment_author_url'] = $_POST['newcomment_author_url'];