Make WordPress Core


Ignore:
Timestamp:
11/09/2006 06:50:58 AM (19 years ago)
Author:
ryan
Message:

Preserve the original query object as wp_the_query so that it's not stomped by subsequent calls to query_posts().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r4458 r4460  
    250250
    251251    function query_posts() {
     252        global $wp_the_query;
    252253        $this->build_query_string();
    253         query_posts($this->query_vars);
     254        $wp_the_query->query($this->query_vars);
    254255    }
    255256
Note: See TracChangeset for help on using the changeset viewer.