wp_schedule_https_detection()
云策文档标注
概述
wp_schedule_https_detection() 函数用于调度 Cron hook 以检测 HTTPS 支持。该函数自 WordPress 5.7.0 版本引入,主要用于内部使用。
关键要点
- 函数 wp_schedule_https_detection() 调度 Cron hook 来检测 HTTPS 支持。
- 该函数自 WordPress 5.7.0 版本引入,标记为私有访问(@access private)。
- 文档中提到了相关函数 wp_is_local_html_output(),用于判断 HTML 输出是否由当前站点生成。
原文内容
Schedules the Cron hook for detecting HTTPS support.
Source
* that it was not possible to determine ownership.
*
* @since 5.7.0
* @access private
*
* @param string $html Full HTML output string, e.g. from a HTTP response.
* @return bool|null True/false for whether HTML was generated by this site, null if unable to determine.
*/
function wp_is_local_html_output( $html ) {
Changelog
| Version | Description |
|---|---|
| 5.7.0 | Introduced. |