Edit File by line
/home/barbar84/public_h.../wp-inclu.../Requests/Exceptio.../HTTP
File: Unknown.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Exception for unknown status responses
[2] Fix | Delete
*
[3] Fix | Delete
* @package Requests
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Exception for unknown status responses
[8] Fix | Delete
*
[9] Fix | Delete
* @package Requests
[10] Fix | Delete
*/
[11] Fix | Delete
class Requests_Exception_HTTP_Unknown extends Requests_Exception_HTTP {
[12] Fix | Delete
/**
[13] Fix | Delete
* HTTP status code
[14] Fix | Delete
*
[15] Fix | Delete
* @var integer|bool Code if available, false if an error occurred
[16] Fix | Delete
*/
[17] Fix | Delete
protected $code = 0;
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* Reason phrase
[21] Fix | Delete
*
[22] Fix | Delete
* @var string
[23] Fix | Delete
*/
[24] Fix | Delete
protected $reason = 'Unknown';
[25] Fix | Delete
[26] Fix | Delete
/**
[27] Fix | Delete
* Create a new exception
[28] Fix | Delete
*
[29] Fix | Delete
* If `$data` is an instance of {@see Requests_Response}, uses the status
[30] Fix | Delete
* code from it. Otherwise, sets as 0
[31] Fix | Delete
*
[32] Fix | Delete
* @param string|null $reason Reason phrase
[33] Fix | Delete
* @param mixed $data Associated data
[34] Fix | Delete
*/
[35] Fix | Delete
public function __construct($reason = null, $data = null) {
[36] Fix | Delete
if ($data instanceof Requests_Response) {
[37] Fix | Delete
$this->code = $data->status_code;
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
parent::__construct($reason, $data);
[41] Fix | Delete
}
[42] Fix | Delete
}
[43] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function