mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
09f48489e1
commit
3879ad5584
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user