wp_get_default_update_https_url()
云策文档标注
概述
wp_get_default_update_https_url() 函数用于获取关于更新站点以使用 HTTPS 的默认学习 URL。此函数主要用于比较实际使用的 URL 与默认 URL,不应直接用于检索 URL。
关键要点
- 函数返回一个字符串,表示学习 HTTPS 更新的默认 URL。
- 不应直接使用此函数获取 URL,而应使用 wp_get_update_https_url() 函数。
- 此函数不允许修改返回的 URL,仅用于比较目的。
- 函数内部使用 __() 进行翻译,返回一个固定的开发者文档链接。
- 在 WordPress 5.7.0 版本中引入。
原文内容
Gets the default URL to learn more about updating the site to use HTTPS.
Description
Do not use this function to retrieve this URL. Instead, use wp_get_update_https_url() when relying on the URL.
This function does not allow modifying the returned URL, and is only used to compare the actually used URL with the default one.
Source
function wp_get_default_update_https_url() {
/* translators: Documentation explaining HTTPS and why it should be used. */
return __( 'https://developer.wordpress.org/advanced-administration/security/https/' );
}
Changelog
| Version | Description |
|---|---|
| 5.7.0 | Introduced. |