Make WordPress Core

Changeset 4460 for trunk/wp-settings.php


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-settings.php

    r4452 r4460  
    227227do_action('sanitize_comment_cookies');
    228228
    229 $wp_query   = new WP_Query();
    230 $wp_rewrite = new WP_Rewrite();
    231 $wp         = new WP();
     229$wp_the_query =& new WP_Query();
     230$wp_query     =& $wp_the_query;
     231$wp_rewrite   =& new WP_Rewrite();
     232$wp           =& new WP();
    232233
    233234validate_current_theme();
Note: See TracChangeset for help on using the changeset viewer.