From 9d2f4045480045d8fd9070c7e2fa6688b356496c Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sun, 11 Jan 2004 23:36:37 +0000 Subject: [PATCH] Variable typo. git-svn-id: http://svn.automattic.com/wordpress/trunk@751 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/post.php b/wp-admin/post.php index 9bbf042e7b..ff0e7fefad 100644 --- a/wp-admin/post.php +++ b/wp-admin/post.php @@ -376,8 +376,8 @@ switch($action) { if ($user_level == 0) die ('Cheatin’ uh?'); - $post_id = $HTTP_GET_VARS['post']; - $postdata = get_postdata($post) or die('Oops, no post with this ID. Go back!'); + $post_id = intval($HTTP_GET_VARS['post']); + $postdata = get_postdata($post_id) or die('Oops, no post with this ID. Go back!'); $authordata = get_userdata($postdata['Author_ID']); if ($user_level < $authordata->user_level)