We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c36fc0d commit bc193d9Copy full SHA for bc193d9
force-https.php
@@ -45,7 +45,7 @@ function force_https_redirect() {
45
}
46
47
// fallback check for https in server if is_ssl fails
48
- if ( ! empty( $_SERVER['HTTPS'] ) && strtolower( $_SERVER['HTTPS'] ) !== 'off' ) {
+ if ( ! empty( $_SERVER['HTTPS'] ) ) {
49
return;
50
51
@@ -158,7 +158,7 @@ function force_https_fix_resource_hints( $urls ) {
158
return $urls;
159
160
161
- // enforce https on each resource hint url
+ // loop through each url and enforce https where needed
162
foreach ( $urls as $key => $url ) {
163
if ( is_string( $url ) ) {
164
$urls[$key] = set_url_scheme( $url, 'https' );
0 commit comments