Make WordPress Core

Ticket #21573: 21573.2.diff

File 21573.2.diff, 713 bytes (added by jeremyfelt, 11 years ago)
  • src/wp-includes/ms-functions.php

     
    16121612 * @since MU
    16131613 */
    16141614function 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 ) ) ) {
    16161616                if ( $destination == '%siteurl%' )
    16171617                        $destination = network_home_url();
    16181618                wp_redirect( $destination );