mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
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:
@@ -752,7 +752,7 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) {
|
||||
// Protect against chained redirects.
|
||||
if ( ! redirect_canonical( $redirect_url, false ) ) {
|
||||
wp_redirect( $redirect_url, 301 );
|
||||
exit();
|
||||
exit;
|
||||
} else {
|
||||
// Debug.
|
||||
// die("1: $redirect_url<br />2: " . redirect_canonical( $redirect_url, false ) );
|
||||
|
||||
@@ -505,7 +505,7 @@ class WP {
|
||||
}
|
||||
|
||||
if ( $exit_required ) {
|
||||
exit();
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -282,11 +282,11 @@ function wpmu_admin_do_redirect( $url = '' ) {
|
||||
if ( $ref ) {
|
||||
$ref = wpmu_admin_redirect_add_updated_param( $ref );
|
||||
wp_redirect( $ref );
|
||||
exit();
|
||||
exit;
|
||||
}
|
||||
if ( ! empty( $_SERVER['HTTP_REFERER'] ) ) {
|
||||
wp_redirect( $_SERVER['HTTP_REFERER'] );
|
||||
exit();
|
||||
exit;
|
||||
}
|
||||
|
||||
$url = wpmu_admin_redirect_add_updated_param( $url );
|
||||
@@ -299,7 +299,7 @@ function wpmu_admin_do_redirect( $url = '' ) {
|
||||
$url = wpmu_admin_redirect_add_updated_param( $_POST['redirect'] );
|
||||
}
|
||||
wp_redirect( $url );
|
||||
exit();
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -2099,12 +2099,14 @@ function maybe_redirect_404() {
|
||||
* @param string $no_blog_redirect The redirect URL defined in NOBLOGREDIRECT.
|
||||
*/
|
||||
$destination = apply_filters( 'blog_redirect_404', NOBLOGREDIRECT );
|
||||
|
||||
if ( $destination ) {
|
||||
if ( '%siteurl%' === $destination ) {
|
||||
$destination = network_home_url();
|
||||
}
|
||||
|
||||
wp_redirect( $destination );
|
||||
exit();
|
||||
exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ if ( wp_using_themes() ) {
|
||||
* @param bool $exit Whether to exit without generating any content for 'HEAD' requests. Default true.
|
||||
*/
|
||||
if ( 'HEAD' === $_SERVER['REQUEST_METHOD'] && apply_filters( 'exit_on_http_head', true ) ) {
|
||||
exit();
|
||||
exit;
|
||||
}
|
||||
|
||||
// Process feeds and trackbacks even if not using themes.
|
||||
|
||||
Reference in New Issue
Block a user