函数文档

wp_cron_conditionally_prevent_sslverify()

💡 云策文档标注

概述

wp_cron_conditionally_prevent_sslverify() 是一个 WordPress 函数,用于在 cron 请求参数包含 HTTPS URL 时禁用 SSL 验证,以避免 HTTPS 中断导致的验证失败问题。

关键要点

  • 函数作用:根据 cron 请求参数中的 URL 协议,条件性地禁用 SSL 验证。
  • 参数:$requestarray(必需),表示 cron 请求参数数组。
  • 返回值:返回过滤后的 cron 请求参数数组。
  • 引入版本:WordPress 5.7.0。

📄 原文内容

Disables SSL verification if the ‘cron_request’ arguments include an HTTPS URL.

Description

This prevents an issue if HTTPS breaks, where there would be a failed attempt to verify HTTPS.

Parameters

$requestarrayrequired
The cron request arguments.

Return

array The filtered cron request arguments.

Source


	// Otherwise the result cannot be determined.
	return null;
}

Changelog

Version Description
5.7.0 Introduced.