Edit File by line
/home/barbar84/www/wp-inclu.../Requests/Transpor...
File: cURL.php
if (empty($url_parts['query'])) {
[500] Fix | Delete
$query = $url_parts['query'] = '';
[501] Fix | Delete
}
[502] Fix | Delete
else {
[503] Fix | Delete
$query = $url_parts['query'];
[504] Fix | Delete
}
[505] Fix | Delete
[506] Fix | Delete
$query .= '&' . http_build_query($data, null, '&');
[507] Fix | Delete
$query = trim($query, '&');
[508] Fix | Delete
[509] Fix | Delete
if (empty($url_parts['query'])) {
[510] Fix | Delete
$url .= '?' . $query;
[511] Fix | Delete
}
[512] Fix | Delete
else {
[513] Fix | Delete
$url = str_replace($url_parts['query'], $query, $url);
[514] Fix | Delete
}
[515] Fix | Delete
}
[516] Fix | Delete
return $url;
[517] Fix | Delete
}
[518] Fix | Delete
[519] Fix | Delete
/**
[520] Fix | Delete
* Whether this transport is valid
[521] Fix | Delete
*
[522] Fix | Delete
* @codeCoverageIgnore
[523] Fix | Delete
* @return boolean True if the transport is valid, false otherwise.
[524] Fix | Delete
*/
[525] Fix | Delete
public static function test($capabilities = array()) {
[526] Fix | Delete
if (!function_exists('curl_init') || !function_exists('curl_exec')) {
[527] Fix | Delete
return false;
[528] Fix | Delete
}
[529] Fix | Delete
[530] Fix | Delete
// If needed, check that our installed curl version supports SSL
[531] Fix | Delete
if (isset($capabilities['ssl']) && $capabilities['ssl']) {
[532] Fix | Delete
$curl_version = curl_version();
[533] Fix | Delete
if (!(CURL_VERSION_SSL & $curl_version['features'])) {
[534] Fix | Delete
return false;
[535] Fix | Delete
}
[536] Fix | Delete
}
[537] Fix | Delete
[538] Fix | Delete
return true;
[539] Fix | Delete
}
[540] Fix | Delete
}
[541] Fix | Delete
[542] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function