We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6491ae commit ed853f1Copy full SHA for ed853f1
force-https.php
@@ -38,10 +38,7 @@ function force_https_redirect_non_https() {
38
39
// force https on all urls by replacing http:// with https://
40
function force_https_securize_url( $url ) {
41
- if ( strpos( $url, 'http://' ) === 0 ) {
42
- return set_url_scheme( $url, 'https' );
43
- }
44
- return $url;
+ return set_url_scheme( $url, 'https' );
45
}
46
47
// apply https to all relevant wordpress filters
0 commit comments