Changeset 3517 for trunk/wp-admin/post.php
- Timestamp:
- 02/12/2006 07:53:23 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r3510 r3517 72 72 73 73 $post = get_post_to_edit($post_ID); 74 74 75 75 if ($post->post_type == 'page') 76 76 include('edit-page-form.php'); … … 131 131 132 132 $post = & get_post($post_id); 133 134 if ( !current_user_can('edit_post', $post_id) ) 133 134 if ( !current_user_can('edit_post', $post_id) ) 135 135 die( __('You are not allowed to delete this post.') ); 136 136 … … 162 162 die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'javascript:history.go(-1)')); 163 163 164 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 164 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 165 165 die( __('You are not allowed to edit comments on this post.') ); 166 166 … … 181 181 die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php')); 182 182 183 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 183 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 184 184 die( __('You are not allowed to delete comments on this post.') ); 185 185 … … 224 224 die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'post.php')); 225 225 226 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 226 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 227 227 die( __('You are not allowed to edit comments on this post.') ); 228 228 … … 253 253 die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php')); 254 254 255 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 255 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 256 256 die( __('You are not allowed to edit comments on this post, so you cannot disapprove this comment.') ); 257 257 … … 273 273 die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php')); 274 274 275 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 275 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 276 276 die( __('You are not allowed to edit comments on this post, so you cannot approve this comment.') ); 277 277 … … 299 299 die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php')); 300 300 301 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 301 if ( !current_user_can('edit_post', $comment->comment_post_ID) ) 302 302 die( __('You are not allowed to edit comments on this post, so you cannot approve this comment.') ); 303 303
Note: See TracChangeset
for help on using the changeset viewer.