Astra_Addon_Filesystem::is_ssl()
Checks to see if the site has SSL enabled or not.
Description
Return
(bool)
Source
File: classes/class-astra-addon-filesystem.php
public function is_ssl() { if ( is_ssl() ) { return true; } elseif ( 0 === stripos( get_option( 'siteurl' ), 'https://' ) ) { return true; } elseif ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' == $_SERVER['HTTP_X_FORWARDED_PROTO'] ) { return true; } return false; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
2.6.4 | Introduced. |