wp-includes/SimplePie/src/HTTP/Parser.php:507Prepare headers (take care of proxies headers)
$headersstring$countSimplePie\HTTP\non-negative-intoptional1string public static function prepareHeaders(string $headers, int $count = 1) { $data = explode("\r\n\r\n", $headers, $count); $data = array_pop($data); if (false !== stripos($data, "HTTP/1.0 200 Connection established\r\n")) { $exploded = explode("\r\n\r\n", $data, 2); $data = end($exploded); } if (false !== stripos($data, "HTTP/1.1 200 Connection established\r\n")) { $exploded = explode("\r\n\r\n", $data, 2); $data = end($exploded); } return $data; }One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$count retyped from integer to SimplePie\HTTP\non-negative-int.verified against sourcesrc/wp-includes/SimplePie/src/HTTP/Parser.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.