From 3fdb05f86a00c5ef476ad8d3489ca6bc949bbf83 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Sun, 11 Jan 2004 23:36:37 +0000 Subject: [PATCH] Variable typo. git-svn-id: https://develop.svn.wordpress.org/trunk@751 602fd350-edb4-49c9-b593-d223f7449a82 --- 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)