From ca9f9c1086fcc6409dbde095794767b57a1310a4 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Tue, 25 May 2010 23:41:36 +0000 Subject: [PATCH] allow main site 404 URL to be filtered, fixes #12758 git-svn-id: https://develop.svn.wordpress.org/trunk@14911 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 34b96395da..431e99b22d 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 ( apply_filters( 'blog_redirect_404', true ) && is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = NOBLOGREDIRECT ) ) { + if ( is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = apply_filters( 'blog_redirect_404', NOBLOGREDIRECT ) ) ) { if ( $destination == '%siteurl%' ) $destination = network_home_url(); wp_redirect( $destination );