Skip to content

Commit ed853f1

Browse files
authored
Update force-https.php
1 parent a6491ae commit ed853f1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

force-https.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ function force_https_redirect_non_https() {
3838

3939
// force https on all urls by replacing http:// with https://
4040
function force_https_securize_url( $url ) {
41-
if ( strpos( $url, 'http://' ) === 0 ) {
42-
return set_url_scheme( $url, 'https' );
43-
}
44-
return $url;
41+
return set_url_scheme( $url, 'https' );
4542
}
4643

4744
// apply https to all relevant wordpress filters

0 commit comments

Comments
 (0)