|
@@ 60-61 (lines=2) @@
|
| 57 |
|
|
| 58 |
|
$comment_id = absint( $_GET['c'] ); |
| 59 |
|
|
| 60 |
|
if ( !$comment = get_comment( $comment_id ) ) |
| 61 |
|
comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'javascript:history.go(-1)') ); |
| 62 |
|
|
| 63 |
|
if ( !current_user_can( 'edit_comment', $comment_id ) ) |
| 64 |
|
comment_footer_die( __('Sorry, you are not allowed to edit this comment.') ); |
|
@@ 254-255 (lines=2) @@
|
| 251 |
|
|
| 252 |
|
$noredir = isset($_REQUEST['noredir']); |
| 253 |
|
|
| 254 |
|
if ( !$comment = get_comment($comment_id) ) |
| 255 |
|
comment_footer_die( __( 'Invalid comment ID.' ) . sprintf(' <a href="%s">' . __('Go back') . '</a>.', 'edit-comments.php') ); |
| 256 |
|
if ( !current_user_can( 'edit_comment', $comment->comment_ID ) ) |
| 257 |
|
comment_footer_die( __('Sorry, you are not allowed to edit comments on this post.') ); |
| 258 |
|
|