WordPress.org

Support

Support » Requests and Feedback » bug in the codex

bug in the codex

  • 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

Viewing 1 replies (of 1 total)
  • mrmist

    @mrmist

    Forum Janitor

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘bug in the codex’ is closed to new replies.