Support » Fixing WordPress » bug in post.php CVS1.3

  • Hi,
    in post.php on line 237 (+/- 1 line) $_POST[‘post_author’]
    is being accessed this variable isn’t set when editing static pages.
    Replacing that with the follwing block, fixes the problem:

    if ($post_status == 'static') {
    $post_author = (int) $_POST['user_ID'];
    } else {
    $post_author = (int) $_POST['post_author'];
    }

    Tschö
    Adi

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘bug in post.php CVS1.3’ is closed to new replies.