diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index f9eee11362..d26795538a 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -1733,7 +1733,7 @@ class WP_Http_Cookie { if ( empty($pair) ) //Handles the cookie ending in ; which results in a empty final pair continue; - list( $key, $val ) = explode( '=', $pair ); + list( $key, $val ) = strpos( $pair, '=' ) ? explode( '=', $pair ) : array( $pair, '' ); $key = strtolower( trim( $key ) ); if ( 'expires' == $key ) $val = strtotime( $val );