Make WordPress Core


Ignore:
Timestamp:
01/13/2023 02:20:46 PM (18 months ago)
Author:
johnbillion
Message:

HTTP API: Correct the documentation for the https_ssl_verify and https_local_ssl_verify filters.

The value for both these filters can also contain a string path to a CA file used to authenticate the identity of the remote server.

Props chesio, mcaskill

Fixes #54803

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-http.php

    r55046 r55063  
    372372         * @since 5.1.0 The `$url` parameter was added.
    373373         *
    374          * @param bool   $ssl_verify Whether to verify the SSL connection. Default true.
    375          * @param string $url        The request URL.
     374         * @param bool|string $ssl_verify Boolean to control whether to verify the SSL connection
     375         *                                or path to an SSL certificate.
     376         * @param string      $url        The request URL.
    376377         */
    377378        $options['verify'] = apply_filters( 'https_ssl_verify', $options['verify'], $url );
Note: See TracChangeset for help on using the changeset viewer.