Use correct variable name. Props sirzooro. fixes #11204

git-svn-id: https://develop.svn.wordpress.org/trunk@12247 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-11-20 20:12:01 +00:00
parent 4fd7b2fd8b
commit 6fe5b12b77
1 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ case 'trash':
$post = & get_post($post_id);
if ( !current_user_can('delete_page', $page_id) )
if ( !current_user_can('delete_page', $post_id) )
wp_die( __('You are not allowed to move this page to the trash.') );
if ( !wp_trash_post($post_id) )
@ -172,7 +172,7 @@ case 'untrash':
$post = & get_post($post_id);
if ( !current_user_can('delete_page', $page_id) )
if ( !current_user_can('delete_page', $post_id) )
wp_die( __('You are not allowed to move this page out of the trash.') );
if ( !wp_untrash_post($post_id) )