mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
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:
parent
bb51b4e239
commit
bfc9c67861
@ -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.') );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user