: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
protected function isFullSSL() {
$is_ssl = false; //This is the same code from WP modified so we can use it here
if ( isset( $_SERVER['HTTPS'] ) ) {
if ( 'on' == strtolower( $_SERVER['HTTPS'] ) ) {
if ( '1' == $_SERVER['HTTPS'] ) {
} elseif ( isset($_SERVER['SERVER_PORT'] ) && ( '443' == $_SERVER['SERVER_PORT'] ) ) {
$homeURL = wfWAF::getInstance()->getStorageEngine()->getConfig('homeURL', null, 'synced');
return $is_ssl && parse_url($homeURL, PHP_URL_SCHEME) === 'https';