We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53babb8 commit 9160fc9Copy full SHA for 9160fc9
force-https.php
@@ -29,7 +29,7 @@
29
function force_https_redirect_non_https() {
30
if ( ! is_ssl() && ! is_admin() && PHP_SAPI !== 'cli' ) {
31
if ( ! headers_sent() ) {
32
- $redirect_url = home_url( add_query_arg( null, null ) );
+ $redirect_url = home_url( add_query_arg( array(), null ) );
33
wp_safe_redirect( set_url_scheme( $redirect_url, 'https' ), 301 );
34
exit;
35
}
0 commit comments