From f57e62ccbe6f4e671c9fd9674346fabdea46a3e5 Mon Sep 17 00:00:00 2001
From: Grzegorz Rola <grola@seostudio.pl>
Date: Fri, 13 May 2022 11:27:48 +0000
Subject: [PATCH] Update functions.php

---
 functions.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/functions.php b/functions.php
index 2b99659..b00aff3 100644
--- a/functions.php
+++ b/functions.php
@@ -1,5 +1,7 @@
 <?php
 
+if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && 'https' === $_SERVER['HTTP_X_FORWARDED_PROTO'] ) { $_SERVER['HTTPS'] = 'on'; }
+
 //include __DIR__. "/baselinker_functions.php";
 
 if ( file_exists( __DIR__. '/functions_add.php' ) ) {
-- 
GitLab