From bfc9c678619af5822b83f6b23ae4ea75b1571b78 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 8 May 2013 17:52:18 +0000 Subject: [PATCH] Remove unused variables. props ocean90. fixes #24247. git-svn-id: http://core.svn.wordpress.org/trunk@24199 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/post.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/wp-admin/post.php b/wp-admin/post.php index d6b91d5a60..79410d623d 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -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.') );