diff --git a/includes/classes/Feature/Autosuggest/Autosuggest.php b/includes/classes/Feature/Autosuggest/Autosuggest.php index 6dd6e4ea5d..9fea317336 100644 --- a/includes/classes/Feature/Autosuggest/Autosuggest.php +++ b/includes/classes/Feature/Autosuggest/Autosuggest.php @@ -658,6 +658,10 @@ public function epio_send_autosuggest_public_request( $blocking = false ) { // Pass the same cookies, so the same authenticated user is used (and we can check the nonce). $cookies = []; foreach ( $_COOKIE as $name => $value ) { + if ( ! is_string( $name ) || ! is_string( $value ) ) { + continue; + } + $cookies[] = new \WP_Http_Cookie( [ 'name' => $name,