From 1c9f84f963ecc27b116e12ec32bdd61992fd045c Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 13 Jan 2023 14:20:46 +0000 Subject: [PATCH] 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 git-svn-id: https://develop.svn.wordpress.org/trunk@55063 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-http-streams.php | 5 +++-- src/wp-includes/class-wp-http.php | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/class-wp-http-streams.php b/src/wp-includes/class-wp-http-streams.php index 48078cfafa..b0dc302a39 100644 --- a/src/wp-includes/class-wp-http-streams.php +++ b/src/wp-includes/class-wp-http-streams.php @@ -101,8 +101,9 @@ class WP_Http_Streams { * @since 2.8.0 * @since 5.1.0 The `$url` parameter was added. * - * @param bool $ssl_verify Whether to verify the SSL connection. Default true. - * @param string $url The request URL. + * @param bool|string $ssl_verify Boolean to control whether to verify the SSL connection + * or path to an SSL certificate. + * @param string $url The request URL. */ $ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify, $url ); } elseif ( ! $is_local ) { diff --git a/src/wp-includes/class-wp-http.php b/src/wp-includes/class-wp-http.php index 7edffe0e6b..6f4fa47200 100644 --- a/src/wp-includes/class-wp-http.php +++ b/src/wp-includes/class-wp-http.php @@ -371,8 +371,9 @@ class WP_Http { * @since 2.8.0 * @since 5.1.0 The `$url` parameter was added. * - * @param bool $ssl_verify Whether to verify the SSL connection. Default true. - * @param string $url The request URL. + * @param bool|string $ssl_verify Boolean to control whether to verify the SSL connection + * or path to an SSL certificate. + * @param string $url The request URL. */ $options['verify'] = apply_filters( 'https_ssl_verify', $options['verify'], $url );