diff --git a/src/wp-includes/class-http.php b/src/wp-includes/class-http.php
index 2a458eb705..ac505750f0 100644
a
|
b
|
|
10 | 10 | if ( ! class_exists( 'Requests' ) ) { |
11 | 11 | require( ABSPATH . WPINC . '/class-requests.php' ); |
12 | 12 | |
| 13 | /** |
| 14 | * Filters the CA bundle used. |
| 15 | * |
| 16 | * @since 5.3.0 |
| 17 | * |
| 18 | * @param string $ca_bundle_path Path to the CA bundle. |
| 19 | */ |
| 20 | $ca_bundle_path = apply_filters( 'requests_certificate_path', ABSPATH . WPINC . '/certificates/ca-bundle.crt' ); |
| 21 | |
13 | 22 | Requests::register_autoloader(); |
14 | | Requests::set_certificate_path( ABSPATH . WPINC . '/certificates/ca-bundle.crt' ); |
| 23 | Requests::set_certificate_path( $ca_bundle_path ); |
15 | 24 | } |
16 | 25 | |
17 | 26 | /** |
… |
… |
class WP_Http { |
206 | 215 | 'compress' => false, |
207 | 216 | 'decompress' => true, |
208 | 217 | 'sslverify' => true, |
209 | | 'sslcertificates' => ABSPATH . WPINC . '/certificates/ca-bundle.crt', |
| 218 | /** |
| 219 | * Filters the CA bundle used. |
| 220 | * |
| 221 | * @since 5.3.0 |
| 222 | * |
| 223 | * @param string $ca_bundle_path Path to the CA bundle. |
| 224 | * @param string $url The request URL. |
| 225 | */ |
| 226 | 'sslcertificates' => apply_filters( 'http_request_sslcertificates', ABSPATH . WPINC . '/certificates/ca-bundle.crt', $url ), |
210 | 227 | 'stream' => false, |
211 | 228 | 'filename' => null, |
212 | 229 | 'limit_response_size' => null, |