Permalink
Browse files

allow main site 404 URL to be filtered, fixes #12758

git-svn-id: http://svn.automattic.com/wordpress/trunk@14911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent dfc7ce5 commit b8187fcd54e2acc3a04c5eb91485ee62c34173aa wpmuguru committed May 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-includes/ms-functions.php
View
2 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 );

0 comments on commit b8187fc

Please sign in to comment.