mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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.') );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user