Make WordPress Core

Changeset 751


Ignore:
Timestamp:
01/11/2004 11:36:37 PM (20 years ago)
Author:
saxmatt
Message:

Variable typo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r738 r751  
    377377            die ('Cheatin’ uh?');
    378378
    379         $post_id = $HTTP_GET_VARS['post'];
    380         $postdata = get_postdata($post) or die('Oops, no post with this ID. <a href="post.php">Go back</a>!');
     379        $post_id = intval($HTTP_GET_VARS['post']);
     380        $postdata = get_postdata($post_id) or die('Oops, no post with this ID. <a href="post.php">Go back</a>!');
    381381        $authordata = get_userdata($postdata['Author_ID']);
    382382
Note: See TracChangeset for help on using the changeset viewer.