Skip to content

Commit 81b75a6

Browse files
committed
Enforce ssl scripts fix
1 parent 66868da commit 81b75a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

paystack-forms.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*/
2929
function kkd_pff_paystack_enqueueScriptsFix() {
3030
if (!is_admin()) {
31-
if (!empty($_SERVER['HTTPS'])) {
31+
if (!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] != "off")) {
3232
global $wp_scripts;
3333
foreach ((array) $wp_scripts->registered as $script) {
3434
if (stripos($script->src, 'http://', 0) !== FALSE)
@@ -43,7 +43,7 @@ function kkd_pff_paystack_enqueueScriptsFix() {
4343
*/
4444
function kkd_pff_paystack_enqueueStylesFix() {
4545
if (!is_admin()) {
46-
if (!empty($_SERVER['HTTPS'])) {
46+
if (!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] != "off")) {
4747
global $wp_styles;
4848
foreach ((array) $wp_styles->registered as $script) {
4949
if (stripos($script->src, 'http://', 0) !== FALSE)

0 commit comments

Comments
 (0)