Remove global regs that can poison query objects. fixes #9854

git-svn-id: https://develop.svn.wordpress.org/trunk@11406 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-05-20 16:05:23 +00:00
parent e6458a87b0
commit 036031cbab
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -414,10 +414,10 @@ class WP {
$GLOBALS[$key] = $value;
}
$GLOBALS['query_string'] = & $this->query_string;
$GLOBALS['query_string'] = $this->query_string;
$GLOBALS['posts'] = & $wp_query->posts;
$GLOBALS['post'] = & $wp_query->post;
$GLOBALS['request'] = & $wp_query->request;
$GLOBALS['post'] = $wp_query->post;
$GLOBALS['request'] = $wp_query->request;
if ( is_single() || is_page() ) {
$GLOBALS['more'] = 1;