WordPress.org

Ready to get started?Download WordPress

Forums

bug in the codex (2 posts)

  1. jplew
    Member
    Posted 3 years ago #

    Hi, forgive me if this is the wrong place to post this, but I think I found a bug in one of the examples on the codex:

    http://codex.wordpress.org/Pages#A_Page_of_Posts

    I pasted in this script and kept getting blank page errors. Then I removed line 29 and it started working:

    $wp_query = null;

    Isn't this a mistake? Why should the query be set to null here?

    Thanks,
    -JP

  2. mrmist
    Forum Janitor
    Posted 3 years ago #

    It's assigned to a temp variable just before, and then re-instantiated immediately afterwards. I wouldn't have thought it would make a lot of difference either way.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags