Make WordPress Core


Ignore:
Timestamp:
01/13/2023 02:20:46 PM (21 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-streams.php

    r54133 r55063  
    102102             * @since 5.1.0 The `$url` parameter was added.
    103103             *
    104              * @param bool   $ssl_verify Whether to verify the SSL connection. Default true.
    105              * @param string $url        The request URL.
     104             * @param bool|string $ssl_verify Boolean to control whether to verify the SSL connection
     105             *                                or path to an SSL certificate.
     106             * @param string      $url        The request URL.
    106107             */
    107108            $ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify, $url );
Note: See TracChangeset for help on using the changeset viewer.