diff --git a/src/wp-includes/class-wp-http.php b/src/wp-includes/class-wp-http.php
index ea8adde0ba..ab631b77e8 100644
a
|
b
|
|
10 | 10 | if ( ! class_exists( 'WpOrg\Requests\Autoload' ) ) { |
11 | 11 | require ABSPATH . WPINC . '/Requests/src/Autoload.php'; |
12 | 12 | |
| 13 | /** |
| 14 | * Filters the CA bundle used. |
| 15 | * |
| 16 | * @since 6.6.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 | WpOrg\Requests\Autoload::register(); |
14 | | WpOrg\Requests\Requests::set_certificate_path( ABSPATH . WPINC . '/certificates/ca-bundle.crt' ); |
| 23 | WpOrg\Requests\Requests::set_certificate_path( $ca_bundle_path ); |
15 | 24 | } |
16 | 25 | |
17 | 26 | /** |
… |
… |
class WP_Http { |
208 | 217 | 'compress' => false, |
209 | 218 | 'decompress' => true, |
210 | 219 | 'sslverify' => true, |
211 | | 'sslcertificates' => ABSPATH . WPINC . '/certificates/ca-bundle.crt', |
| 220 | /** |
| 221 | * Filters the CA bundle used. |
| 222 | * |
| 223 | * @since 6.6.0 |
| 224 | * |
| 225 | * @param string $ca_bundle_path Path to the CA bundle. |
| 226 | * @param string $url The request URL. |
| 227 | */ |
| 228 | 'sslcertificates' => apply_filters( 'http_request_sslcertificates', ABSPATH . WPINC . '/certificates/ca-bundle.crt', $url ), |
212 | 229 | 'stream' => false, |
213 | 230 | 'filename' => null, |
214 | 231 | 'limit_response_size' => null, |