Skip to content

Commit bc193d9

Browse files
authored
Update force-https.php
1 parent c36fc0d commit bc193d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

force-https.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function force_https_redirect() {
4545
}
4646

4747
// fallback check for https in server if is_ssl fails
48-
if ( ! empty( $_SERVER['HTTPS'] ) && strtolower( $_SERVER['HTTPS'] ) !== 'off' ) {
48+
if ( ! empty( $_SERVER['HTTPS'] ) ) {
4949
return;
5050
}
5151

@@ -158,7 +158,7 @@ function force_https_fix_resource_hints( $urls ) {
158158
return $urls;
159159
}
160160

161-
// enforce https on each resource hint url
161+
// loop through each url and enforce https where needed
162162
foreach ( $urls as $key => $url ) {
163163
if ( is_string( $url ) ) {
164164
$urls[$key] = set_url_scheme( $url, 'https' );

0 commit comments

Comments
 (0)