From 75e66fcb9c4006b7a5acfabef1e2b69710b15645 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 25 May 2010 18:12:14 +0000 Subject: [PATCH] Use a filter instead of a new NO404REDIRECT constant. see #12758. git-svn-id: https://develop.svn.wordpress.org/trunk@14899 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/ms-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index dd1f9037eb..34b96395da 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -1303,7 +1303,7 @@ function signup_nonce_check( $result ) { function maybe_redirect_404() { global $current_site; - if ( ( !defined( 'NO404REDIRECT' ) || ! NO404REDIRECT ) && is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = NOBLOGREDIRECT ) ) { + if ( apply_filters( 'blog_redirect_404', true ) && is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = NOBLOGREDIRECT ) ) { if ( $destination == '%siteurl%' ) $destination = network_home_url(); wp_redirect( $destination );