From b0f12dec28a0f16e7ff17ff2b60f011b49d3ef7e Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 7 Mar 2007 05:37:22 +0000 Subject: [PATCH] Cast query vars to strings. fixes #3891 git-svn-id: http://svn.automattic.com/wordpress/branches/2.1@4991 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/classes.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 931eb4305b..1c0b6ca9ff 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -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) {