diff --git a/wp-includes/class-IXR.php b/wp-includes/class-IXR.php index ea5c01b96..49f80b0ca 100644 --- a/wp-includes/class-IXR.php +++ b/wp-includes/class-IXR.php @@ -581,7 +581,8 @@ class IXR_Client { $gettingHeaders = false; } if (!$gettingHeaders) { - $contents .= trim($line); + // WP#12559 remove trim so as to not strip newlines from received response. + $contents .= $line; } if ($this->debug) { $debug_contents .= $line;