From a6618fb828d531fdf3b234fd4ae85155a48fb3db Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 16 Mar 2007 22:05:15 +0000 Subject: [PATCH] Don't cast to string if empty. Props donncha. fixes #3979 for 2.0 git-svn-id: https://develop.svn.wordpress.org/branches/2.0@5053 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/classes.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 79f591014e..2af152fcde 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -1617,6 +1617,9 @@ class WP { $this->query_vars[$wpvar] = $query_vars[$wpvar]; else $this->query_vars[$wpvar] = ''; + + if ( !empty( $this->query_vars[$wpvar] ) ) + $this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar]; } if ( isset($error) )