Don't attempt to convert objects to strings in WP->parse_request(). Fixes #14330
git-svn-id: http://svn.automattic.com/wordpress/trunk@15793 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c9190d87d5
commit
810b3a215f
|
@ -276,9 +276,12 @@ class WP {
|
||||||
if ( ! is_array( $this->query_vars[$wpvar] ) ) {
|
if ( ! is_array( $this->query_vars[$wpvar] ) ) {
|
||||||
$this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];
|
$this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];
|
||||||
} else {
|
} else {
|
||||||
foreach ( $this->query_vars[$wpvar] as $vkey => $v )
|
foreach ( $this->query_vars[$wpvar] as $vkey => $v ) {
|
||||||
|
if ( !is_object( $v ) ) {
|
||||||
$this->query_vars[$wpvar][$vkey] = (string) $v;
|
$this->query_vars[$wpvar][$vkey] = (string) $v;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( isset( $taxonomy_query_vars[$wpvar] ) ) {
|
if ( isset( $taxonomy_query_vars[$wpvar] ) ) {
|
||||||
$this->query_vars['taxonomy'] = $taxonomy_query_vars[$wpvar];
|
$this->query_vars['taxonomy'] = $taxonomy_query_vars[$wpvar];
|
||||||
|
|
Loading…
Reference in New Issue