Make WordPress Core


Ignore:
Timestamp:
02/12/2006 07:53:23 AM (19 years ago)
Author:
ryan
Message:

Death to trailing tabs. Props Mark J. fixes #2405

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r3510 r3517  
    7272
    7373    $post = get_post_to_edit($post_ID);
    74    
     74
    7575    if ($post->post_type == 'page')
    7676        include('edit-page-form.php');
     
    131131
    132132    $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) )
    135135        die( __('You are not allowed to delete this post.') );
    136136
     
    162162        die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'javascript:history.go(-1)'));
    163163
    164     if ( !current_user_can('edit_post', $comment->comment_post_ID) )   
     164    if ( !current_user_can('edit_post', $comment->comment_post_ID) )
    165165        die( __('You are not allowed to edit comments on this post.') );
    166166
     
    181181        die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
    182182
    183     if ( !current_user_can('edit_post', $comment->comment_post_ID) )   
     183    if ( !current_user_can('edit_post', $comment->comment_post_ID) )
    184184        die( __('You are not allowed to delete comments on this post.') );
    185185
     
    224224             die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'post.php'));
    225225
    226     if ( !current_user_can('edit_post', $comment->comment_post_ID) )   
     226    if ( !current_user_can('edit_post', $comment->comment_post_ID) )
    227227        die( __('You are not allowed to edit comments on this post.') );
    228228
     
    253253        die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
    254254
    255     if ( !current_user_can('edit_post', $comment->comment_post_ID) )   
     255    if ( !current_user_can('edit_post', $comment->comment_post_ID) )
    256256        die( __('You are not allowed to edit comments on this post, so you cannot disapprove this comment.') );
    257257
     
    273273             die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
    274274
    275     if ( !current_user_can('edit_post', $comment->comment_post_ID) )   
     275    if ( !current_user_can('edit_post', $comment->comment_post_ID) )
    276276        die( __('You are not allowed to edit comments on this post, so you cannot approve this comment.') );
    277277
     
    299299        die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php'));
    300300
    301     if ( !current_user_can('edit_post', $comment->comment_post_ID) )   
     301    if ( !current_user_can('edit_post', $comment->comment_post_ID) )
    302302        die( __('You are not allowed to edit comments on this post, so you cannot approve this comment.') );
    303303
Note: See TracChangeset for help on using the changeset viewer.