Changeset 3985 for trunk/wp-admin/comment.php
- Timestamp:
- 07/05/2006 10:00:03 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/comment.php
r3956 r3985 20 20 21 21 if ( ! $comment = get_comment($comment) ) 22 die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'javascript:history.go(-1)'));22 wp_die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'javascript:history.go(-1)')); 23 23 24 24 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 25 die( __('You are not allowed to edit comments on this post.') );25 wp_die( __('You are not allowed to edit comments on this post.') ); 26 26 27 27 $comment = get_comment_to_edit($comment); … … 43 43 44 44 if ( ! $comment = get_comment($comment) ) 45 die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));45 wp_die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php')); 46 46 47 47 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 48 die( 'confirmdeletecomment' == $action ? __('You are not allowed to delete comments on this post.') : __('You are not allowed to edit comments on this post, so you cannot approve this comment.') );48 wp_die( 'confirmdeletecomment' == $action ? __('You are not allowed to delete comments on this post.') : __('You are not allowed to edit comments on this post, so you cannot approve this comment.') ); 49 49 50 50 echo "<div class='wrap'>\n"; … … 91 91 92 92 $postdata = get_post($p) or 93 die(sprintf(__('Oops, no post with this ID. <a href="%s">Go back</a>!'), 'edit.php'));93 wp_die(sprintf(__('Oops, no post with this ID. <a href="%s">Go back</a>!'), 'edit.php')); 94 94 95 95 if ( ! $comment = get_comment($comment) ) 96 die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit-comments.php'));96 wp_die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit-comments.php')); 97 97 98 98 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 99 die( __('You are not allowed to edit comments on this post.') );99 wp_die( __('You are not allowed to edit comments on this post.') ); 100 100 101 101 if ( 'spam' == $_REQUEST['delete_type'] ) … … 124 124 125 125 if ( ! $comment = get_comment($comment) ) 126 die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));126 wp_die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php')); 127 127 128 128 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 129 die( __('You are not allowed to edit comments on this post, so you cannot disapprove this comment.') );129 wp_die( __('You are not allowed to edit comments on this post, so you cannot disapprove this comment.') ); 130 130 131 131 wp_set_comment_status($comment->comment_ID, "hold"); … … 151 151 152 152 if ( ! $comment = get_comment($comment) ) 153 die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));153 wp_die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php')); 154 154 155 155 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 156 die( __('You are not allowed to edit comments on this post, so you cannot approve this comment.') );156 wp_die( __('You are not allowed to edit comments on this post, so you cannot approve this comment.') ); 157 157 158 158 wp_set_comment_status($comment->comment_ID, "approve");
Note: See TracChangeset
for help on using the changeset viewer.