Make sure initial query is saved when calling wp(). Props andy. fixes #5121 for 2.3
git-svn-id: http://svn.automattic.com/wordpress/branches/2.3@6232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
52ea4aa917
commit
574d8bb7d3
|
@ -726,9 +726,12 @@ function wp_remote_fopen( $uri ) {
|
|||
}
|
||||
|
||||
function wp($query_vars = '') {
|
||||
global $wp;
|
||||
global $wp, $wp_query, $wp_the_query;
|
||||
|
||||
$wp->main($query_vars);
|
||||
|
||||
if( !isset($wp_the_query) )
|
||||
$wp_the_query = $wp_query;
|
||||
}
|
||||
|
||||
function get_status_header_desc( $code ) {
|
||||
|
|
Loading…
Reference in New Issue