Coding Standards: Fix instances of Generic.WhiteSpace.ArbitraryParenthesesSpacing.FoundEmpty.

See #49542.

git-svn-id: https://develop.svn.wordpress.org/trunk@47855 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-05-26 09:35:34 +00:00
parent 6ec9c9c446
commit 2c75752c88
28 changed files with 70 additions and 68 deletions

View File

@@ -1048,10 +1048,10 @@ if ( ! function_exists( 'auth_redirect' ) ) :
if ( $secure && ! is_ssl() && false !== strpos( $_SERVER['REQUEST_URI'], 'wp-admin' ) ) {
if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {
wp_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );
exit();
exit;
} else {
wp_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
exit();
exit;
}
}
@@ -1079,10 +1079,10 @@ if ( ! function_exists( 'auth_redirect' ) ) :
if ( ! $secure && get_user_option( 'use_ssl', $user_id ) && false !== strpos( $_SERVER['REQUEST_URI'], 'wp-admin' ) ) {
if ( 0 === strpos( $_SERVER['REQUEST_URI'], 'http' ) ) {
wp_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );
exit();
exit;
} else {
wp_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
exit();
exit;
}
}
@@ -1097,7 +1097,7 @@ if ( ! function_exists( 'auth_redirect' ) ) :
$login_url = wp_login_url( $redirect, true );
wp_redirect( $login_url );
exit();
exit;
}
endif;