Make WordPress Core

Ticket #47483: 47483.2.diff

File 47483.2.diff, 1.4 KB (added by skithund, 7 months ago)
  • src/wp-includes/class-wp-http.php

    diff --git a/src/wp-includes/class-wp-http.php b/src/wp-includes/class-wp-http.php
    index ea8adde0ba..ab631b77e8 100644
    a b  
    1010if ( ! class_exists( 'WpOrg\Requests\Autoload' ) ) {
    1111        require ABSPATH . WPINC . '/Requests/src/Autoload.php';
    1212
     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
    1322        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 );
    1524}
    1625
    1726/**
    class WP_Http { 
    208217                        'compress'            => false,
    209218                        'decompress'          => true,
    210219                        '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 ),
    212229                        'stream'              => false,
    213230                        'filename'            => null,
    214231                        'limit_response_size' => null,