Cast query vars to strings. fixes #3891
git-svn-id: https://develop.svn.wordpress.org/trunk@4965 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3de61ceeea
commit
e6733adfbc
@ -148,6 +148,8 @@ class WP {
|
||||
$this->query_vars[$wpvar] = $_GET[$wpvar];
|
||||
elseif (!empty($perma_query_vars[$wpvar]))
|
||||
$this->query_vars[$wpvar] = $perma_query_vars[$wpvar];
|
||||
|
||||
$this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];
|
||||
}
|
||||
|
||||
foreach ($this->private_query_vars as $var) {
|
||||
|
Loading…
Reference in New Issue
Block a user