Use correct variable name. Props sirzooro. fixes #11204

git-svn-id: http://svn.automattic.com/wordpress/trunk@12247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-11-20 20:12:01 +00:00
parent 6d1ba22c9d
commit 61962c4eb5
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) )