Fix query parsing. Props westi. fixes #3085

git-svn-id: http://svn.automattic.com/wordpress/trunk@4141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-08-30 18:37:33 +00:00
parent 09f48489e1
commit 3879ad5584

View File

@ -217,7 +217,9 @@ class WP {
}
foreach ($this->private_query_vars as $var) {
if (isset($GLOBALS[$var]) && '' != $GLOBALS[$var] && ! isset($this->extra_query_vars[$var]) )
if (isset($this->extra_query_vars[$var]))
$this->query_vars[$var] = $this->extra_query_vars[$var];
elseif (isset($GLOBALS[$var]) && '' != $GLOBALS[$var])
$this->query_vars[$var] = $GLOBALS[$var];
}