diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/Requests/src/Exception/Transport/Curl.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wp/wp-includes/Requests/src/Exception/Transport/Curl.php Fri Sep 05 18:40:08 2025 +0200 @@ -0,0 +1,80 @@ +type = $type; + } + + if ($code !== null) { + $this->code = (int) $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. + * + * @return string + */ + public function getReason() { + return $this->reason; + } + +}