Show
Ignore:
Timestamp:
10/12/07 21:46:32 (1 year ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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