Remove unused variables. props ocean90. fixes #24247.

git-svn-id: https://develop.svn.wordpress.org/trunk@24199 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-05-08 17:52:18 +00:00
parent edee280e39
commit b6bd2d56da
1 changed files with 0 additions and 5 deletions

View File

@ -133,9 +133,6 @@ case 'edit':
exit();
}
$p = $post_id;
if ( empty($post->ID) )
wp_die( __('You attempted to edit an item that doesn’t exist. Perhaps it was deleted?') );
@ -223,8 +220,6 @@ case 'editpost':
case 'trash':
check_admin_referer('trash-post_' . $post_id);
$post = get_post($post_id);
if ( !current_user_can($post_type_object->cap->delete_post, $post_id) )
wp_die( __('You are not allowed to move this item to the Trash.') );