Cast query vars to strings. fixes #3891

git-svn-id: http://svn.automattic.com/wordpress/trunk@4965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-03-04 18:08:33 +00:00
parent 1e3ca9cde1
commit 1fd8b676c4
1 changed files with 2 additions and 0 deletions

View File

@ -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) {