diff -r 490d5cc509ed -r cf61fcea0001 wp/wp-includes/Requests/Exception/Transport/cURL.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wp/wp-includes/Requests/Exception/Transport/cURL.php Mon Oct 14 17:39:30 2019 +0200 @@ -0,0 +1,56 @@ +type = $type; + } + + if ($code !== null) { + $this->code = $code; + } + + if ($message !== null) { + $this->reason = $message; + } + + $message = sprintf('%d %s', $this->code, $this->reason); + parent::__construct($message, $this->type, $data, $this->code); + } + + /** + * Get the error message + */ + public function getReason() { + return $this->reason; + } + +}