mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 14:45:45 +01:00
Cast query vars to strings. fixes #3891
git-svn-id: http://svn.automattic.com/wordpress/branches/2.1@4991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7184153c3d
commit
b0f12dec28
@ -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