bug in the codex (2 posts)

  1. jplew
    Posted 5 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:


    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?


  2. mrmist
    Forum Janitor
    Posted 5 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