Ticket #16061: 16061.diff
| File 16061.diff, 2.4 KB (added by DH-Shredder, 20 months ago) |
|---|
-
wp-admin/edit-comments.php
152 152 $error_msg = __( 'Oops, no comment with this ID.' ); 153 153 break; 154 154 case 2 : 155 $error_msg = __( 'You are not allowedto edit comments on this post.' );155 $error_msg = __( 'You do not have sufficient permissions to edit comments on this post.' ); 156 156 break; 157 157 } 158 158 if ( $error_msg ) -
wp-admin/includes/comment.php
34 34 function edit_comment() { 35 35 36 36 if ( ! current_user_can( 'edit_comment', (int) $_POST['comment_ID'] ) ) 37 wp_die ( __( 'You are not allowedto edit comments on this post.' ) );37 wp_die ( __( 'You do not have sufficient permissions to edit comments on this post.' ) ); 38 38 39 39 $_POST['comment_author'] = $_POST['newcomment_author']; 40 40 $_POST['comment_author_email'] = $_POST['newcomment_author_email']; -
wp-admin/comment.php
61 61 comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back').'</a>!', 'javascript:history.go(-1)') ); 62 62 63 63 if ( !current_user_can( 'edit_comment', $comment_id ) ) 64 comment_footer_die( __('You are not allowedto edit this comment.') );64 comment_footer_die( __('You do not have sufficient permissions to edit this comment.') ); 65 65 66 66 if ( 'trash' == $comment->comment_approved ) 67 67 comment_footer_die( __('This comment is in the Trash. Please move it out of the Trash if you want to edit it.') ); … … 214 214 if ( !$comment = get_comment($comment_id) ) 215 215 comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back').'</a>!', 'edit-comments.php') ); 216 216 if ( !current_user_can( 'edit_comment', $comment->comment_ID ) ) 217 comment_footer_die( __('You are not allowedto edit comments on this post.') );217 comment_footer_die( __('You do not have sufficient permissions to edit comments on this post.') ); 218 218 219 219 if ( '' != wp_get_referer() && ! $noredir && false === strpos(wp_get_referer(), 'comment.php') ) 220 220 $redir = wp_get_referer();
