wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
is_ssl › WordPress Function
Seit2.6.0
Veraltetn/v
› is_ssl ( Keine Parameter )
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: | |
| Changelog: |
|
Determines if SSL is used.
Quellcode
function is_ssl() {
if ( isset( $_SERVER['HTTPS'] ) ) {
if ( 'on' === strtolower( $_SERVER['HTTPS'] ) ) {
return true;
}
if ( '1' === (string) $_SERVER['HTTPS'] ) {
return true;
}
} elseif ( isset( $_SERVER['SERVER_PORT'] ) && ( '443' === (string) $_SERVER['SERVER_PORT'] ) ) {
return true;
}
return false;
}