Fix query parsing. Props westi. fixes #3085
git-svn-id: https://develop.svn.wordpress.org/trunk@4141 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9abefc0104
commit
6c77b22cb8
@ -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