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

git-svn-id: http://svn.automattic.com/wordpress/trunk@11406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2009-05-20 16:05:23 +00:00
parent e5f7b9d7fc
commit 458a0cf306
2 changed files with 7 additions and 7 deletions

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;