Skip to content

Commit 9160fc9

Browse files
authored
Update force-https.php
1 parent 53babb8 commit 9160fc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

force-https.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
function force_https_redirect_non_https() {
3030
if ( ! is_ssl() && ! is_admin() && PHP_SAPI !== 'cli' ) {
3131
if ( ! headers_sent() ) {
32-
$redirect_url = home_url( add_query_arg( null, null ) );
32+
$redirect_url = home_url( add_query_arg( array(), null ) );
3333
wp_safe_redirect( set_url_scheme( $redirect_url, 'https' ), 301 );
3434
exit;
3535
}

0 commit comments

Comments
 (0)