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:
parent
6d1ba22c9d
commit
61962c4eb5
|
@ -150,7 +150,7 @@ case 'trash':
|
||||||
|
|
||||||
$post = & get_post($post_id);
|
$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.') );
|
wp_die( __('You are not allowed to move this page to the trash.') );
|
||||||
|
|
||||||
if ( !wp_trash_post($post_id) )
|
if ( !wp_trash_post($post_id) )
|
||||||
|
@ -172,7 +172,7 @@ case 'untrash':
|
||||||
|
|
||||||
$post = & get_post($post_id);
|
$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.') );
|
wp_die( __('You are not allowed to move this page out of the trash.') );
|
||||||
|
|
||||||
if ( !wp_untrash_post($post_id) )
|
if ( !wp_untrash_post($post_id) )
|
||||||
|
|
Loading…
Reference in New Issue