WordPress.org

Make WordPress Core

Ticket #21143: 21143_no_blog_redirect.diff

File 21143_no_blog_redirect.diff, 536 bytes (added by jamescollins, 6 years ago)
  • wp-includes/ms-settings.php

     
    8181        }
    8282
    8383        if ( ! defined( 'WP_INSTALLING' ) && is_subdomain_install() && ! is_object( $current_blog ) ) {
     84
     85                do_action('no_blog_redirect', $domain, $blogname, $current_site, $current_blog, $path );
     86
    8487                if ( defined( 'NOBLOGREDIRECT' ) ) {
    8588                        $destination = NOBLOGREDIRECT;
    8689                        if ( '%siteurl%' == $destination )