diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index a25abf265..6f2305a05 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -1736,6 +1736,7 @@ class WP_Http_Cookie { // Set everything else as a property foreach ( $pairs as $pair ) { + $pair = rtrim($pair); if ( empty($pair) ) //Handles the cookie ending in ; which results in a empty final pair continue;