mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user