mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-08 19:20:03 +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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user