Ticket #11270: 11270.diff
| File 11270.diff, 1.2 KB (added by wojtek.szkutnik, 22 months ago) |
|---|
-
comment.php
58 58 $comment_id = absint( $_GET['c'] ); 59 59 60 60 if ( !$comment = get_comment( $comment_id ) ) 61 comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back ').'</a>!', 'javascript:history.go(-1)') );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_post', $comment->comment_post_ID) ) 64 64 comment_footer_die( __('You are not allowed to edit comments on this post.') ); … … 211 211 $noredir = isset($_REQUEST['noredir']); 212 212 213 213 if ( !$comment = get_comment($comment_id) ) 214 comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back ').'</a>!', 'edit-comments.php') );214 comment_footer_die( __('Oops, no comment with this ID.') . sprintf(' <a href="%s">'.__('Go back!').'</a>', 'edit-comments.php') ); 215 215 if ( !current_user_can('edit_post', $comment->comment_post_ID ) ) 216 216 comment_footer_die( __('You are not allowed to edit comments on this post.') ); 217 217
