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
This commit is contained in:
scribu 2010-10-13 15:21:19 +00:00
parent 057abe87e0
commit 0ed3d0b176
1 changed files with 5 additions and 2 deletions

View File

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