Make WordPress Core

Changeset 55063

Timestamp:
01/13/2023 02:20:46 PM (19 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

Location:
trunk/src/wp-includes
Files:
2 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 );
  • 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.