mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Variable typo.
git-svn-id: https://develop.svn.wordpress.org/trunk@751 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c261c06217
commit
3fdb05f86a
@ -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. <a href="post.php">Go back</a>!');
|
||||
$post_id = intval($HTTP_GET_VARS['post']);
|
||||
$postdata = get_postdata($post_id) or die('Oops, no post with this ID. <a href="post.php">Go back</a>!');
|
||||
$authordata = get_userdata($postdata['Author_ID']);
|
||||
|
||||
if ($user_level < $authordata->user_level)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user