wp_cron_conditionally_prevent_sslverify
函数
wp_cron_conditionally_prevent_sslverify ( $request )
- Access
- Private
- 参数
-
-
(array)
$request
The cron request arguments.- Required: 是
-
(array)
- 返回值
-
- (array) The filtered cron request arguments.
- 定义位置
-
-
wp-includes/https-detection.php
, line 184
-
wp-includes/https-detection.php
- 引入
- 5.7.0
- 弃用
- –
Disables SSL verification if the ‘cron_request’ arguments include an HTTPS URL.
This prevents an issue if HTTPS breaks, where there would be a failed attempt to verify HTTPS.
function wp_cron_conditionally_prevent_sslverify( $request ) { if ( 'https' === wp_parse_url( $request['url'], PHP_URL_SCHEME ) ) { $request['args']['sslverify'] = false; } return $request; }
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。