Remove unused variables. props ocean90. fixes #24247.

git-svn-id: http://core.svn.wordpress.org/trunk@24199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2013-05-08 17:52:18 +00:00
parent bb51b4e239
commit bfc9c67861

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.') );