From 581b74cbed0cbda932ecdf692a337695b3be3d54 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Fri, 22 Dec 2017 03:17:14 +0000 Subject: [PATCH] WP: Don't attempt to convert multiple-nested arrays to a string in WP->parse_request(). See #14330. Fixes #42752. git-svn-id: https://develop.svn.wordpress.org/trunk@42419 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp.php b/src/wp-includes/class-wp.php index 5298ff21ab..47ed0a04b4 100644 --- a/src/wp-includes/class-wp.php +++ b/src/wp-includes/class-wp.php @@ -308,7 +308,7 @@ class WP { $this->query_vars[ $wpvar ] = (string) $this->query_vars[ $wpvar ]; } else { foreach ( $this->query_vars[ $wpvar ] as $vkey => $v ) { - if ( ! is_object( $v ) ) { + if ( is_scalar( $v ) ) { $this->query_vars[ $wpvar ][ $vkey ] = (string) $v; } }