From 0ed3d0b176387bc0edaebf55249754ad522a2e4d Mon Sep 17 00:00:00 2001 From: scribu Date: Wed, 13 Oct 2010 15:21:19 +0000 Subject: [PATCH] Don't attempt to convert objects to strings in WP->parse_request(). Fixes #14330 git-svn-id: https://develop.svn.wordpress.org/trunk@15793 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/classes.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index fca64eb7ac..ca884eeaab 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -276,8 +276,11 @@ class WP { if ( ! is_array( $this->query_vars[$wpvar] ) ) { $this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar]; } else { - foreach ( $this->query_vars[$wpvar] as $vkey => $v ) - $this->query_vars[$wpvar][$vkey] = (string) $v; + foreach ( $this->query_vars[$wpvar] as $vkey => $v ) { + if ( !is_object( $v ) ) { + $this->query_vars[$wpvar][$vkey] = (string) $v; + } + } } if ( isset( $taxonomy_query_vars[$wpvar] ) ) {