WordPress.org

Make WordPress Core

Changeset 6232


Ignore:
Timestamp:
10/12/2007 09:46:32 PM (11 years ago)
Author:
ryan
Message:

Make sure initial query is saved when calling wp(). Props andy. fixes #5121 for 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/wp-includes/functions.php

    r6153 r6232  
    727727
    728728function wp($query_vars = '') {
    729     global $wp;
     729    global $wp, $wp_query, $wp_the_query;
    730730
    731731    $wp->main($query_vars);
     732
     733    if( !isset($wp_the_query) )
     734        $wp_the_query = $wp_query;
    732735}
    733736
Note: See TracChangeset for help on using the changeset viewer.