Make WordPress Core

Ticket #47483: 47483.diff

File 47483.diff, 1.4 KB (added by skithund, 6 years ago)
  • src/wp-includes/class-http.php

    diff --git a/src/wp-includes/class-http.php b/src/wp-includes/class-http.php
    index 2a458eb705..ac505750f0 100644
    a b  
    1010if ( ! class_exists( 'Requests' ) ) {
    1111        require( ABSPATH . WPINC . '/class-requests.php' );
    1212
     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
    1322        Requests::register_autoloader();
    14         Requests::set_certificate_path( ABSPATH . WPINC . '/certificates/ca-bundle.crt' );
     23        Requests::set_certificate_path( $ca_bundle_path );
    1524}
    1625
    1726/**
    class WP_Http { 
    206215                        'compress'            => false,
    207216                        'decompress'          => true,
    208217                        '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 ),
    210227                        'stream'              => false,
    211228                        'filename'            => null,
    212229                        'limit_response_size' => null,