WordPress.org

Ready to get started?Download WordPress

Forums

bug in post.php CVS1.3 (3 posts)

  1. adsworth
    Member
    Posted 9 years ago #

    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

  2. adsworth
    Member
    Posted 9 years ago #

    Hi,
    it's me again. I forgot to mention the problem. :)
    The static pages wouldn't show up any more
    because the post_author was set to 0 and not to
    the correct ID of the author.

  3. adsworth
    Member
    Posted 9 years ago #

    Hi,
    I added this to http://mosquito.wordpress.org
    Regards
    Adi

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.