WordPress.org

Make WordPress Core

Changeset 24199


Ignore:
Timestamp:
05/08/13 17:52:18 (2 years ago)
Author:
SergeyBiryukov
Message:

Remove unused variables. props ocean90. fixes #24247.

File:
1 edited

Legend:

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

    r23929 r24199  
    134134    } 
    135135 
    136     $p = $post_id; 
    137  
    138  
    139136    if ( empty($post->ID) ) 
    140137        wp_die( __('You attempted to edit an item that doesn’t exist. Perhaps it was deleted?') ); 
     
    224221    check_admin_referer('trash-post_' . $post_id); 
    225222 
    226     $post = get_post($post_id); 
    227  
    228223    if ( !current_user_can($post_type_object->cap->delete_post, $post_id) ) 
    229224        wp_die( __('You are not allowed to move this item to the Trash.') ); 
Note: See TracChangeset for help on using the changeset viewer.