From 6fe5b12b771f35e35478cfb72a292b54ccd22628 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 20 Nov 2009 20:12:01 +0000 Subject: [PATCH] Use correct variable name. Props sirzooro. fixes #11204 git-svn-id: https://develop.svn.wordpress.org/trunk@12247 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/page.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/page.php b/wp-admin/page.php index c2176f2c4e..f0b139cacf 100644 --- a/wp-admin/page.php +++ b/wp-admin/page.php @@ -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) )