WordPress.org

Make WordPress Core

Ticket #21143: 21143_blog_not_found.diff

File 21143_blog_not_found.diff, 534 bytes (added by jamescollins, 22 months ago)

New hook is now named blog_not_found

  • wp-includes/ms-settings.php

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