Ticket #21573: 21573.2.diff
File 21573.2.diff, 713 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/ms-functions.php
1612 1612 * @since MU 1613 1613 */ 1614 1614 function maybe_redirect_404() { 1615 if ( is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = apply_filters( 'blog_redirect_404', NOBLOGREDIRECT ) ) ) {1615 if ( ! is_subdomain_install() && is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = apply_filters( 'blog_redirect_404', NOBLOGREDIRECT ) ) ) { 1616 1616 if ( $destination == '%siteurl%' ) 1617 1617 $destination = network_home_url(); 1618 1618 wp_redirect( $destination );