diff --git a/wp-includes/Requests/Transport/cURL.php b/wp-includes/Requests/Transport/cURL.php
index 453f73b..33eeb64 100644
a
|
b
|
class Requests_Transport_cURL implements Requests_Transport { |
524 | 524 | * @return boolean True if the transport is valid, false otherwise. |
525 | 525 | */ |
526 | 526 | public static function test($capabilities = array()) { |
527 | | if (!function_exists('curl_init') && !function_exists('curl_exec')) { |
| 527 | if (!function_exists('curl_init') || !function_exists('curl_exec')) { |
528 | 528 | return false; |
529 | 529 | } |
530 | 530 | |
… |
… |
class Requests_Transport_cURL implements Requests_Transport { |
536 | 536 | } |
537 | 537 | } |
538 | 538 | |
539 | | return true; |
| 539 | /** |
| 540 | * Filters whether cURL can be used as a transport for retrieving a URL. |
| 541 | * |
| 542 | * @since 4.6.1 |
| 543 | * |
| 544 | * @param bool $use_class Whether the class can be used. Default true. |
| 545 | * @param array $capabilities An array of request arguments. |
| 546 | */ |
| 547 | return apply_filters( 'use_curl_transport', true, $capabilities ); |
540 | 548 | } |
541 | 549 | } |