is_ssl()
is_ssl() 确定是否使用SSL。Determines if SSL is used. 目录锚点:#返回#…
is_ssl()
确定是否使用SSL。
Determines if SSL is used.
确定是否使用SSL。
Determines if SSL is used.
目录锚点:#返回#源码#笔记
返回(Return)
(bool)如果是SSL,则为True,否则为false。
源码(Source)
/**
* Determine if SSL is used.
*
* @since 2.6.0
*
* @return bool True if SSL, false if not used.
*/
function is_ssl() {
if ( isset($_SERVER['HTTPS']) ) {
if ( 'on' == strtolower($_SERVER['HTTPS']) )
return true;
if ( '1' == $_SERVER['HTTPS'] )
return true;
} elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) {
return true;
}
return false;
}| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 4.6.0 | wp-includes/load.php:1274 | 26 | 0 |
笔记(Notes)
带负载平衡器
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。





还没有任何评论,赶紧来占个楼吧!