WordPress.org

Make WordPress Core

Ticket #17303: 17303.patch

File 17303.patch, 501 bytes (added by SergeyBiryukov, 4 years ago)
  • wp-includes/ms-functions.php

     
    687687                $mydomain = "$domain"; 
    688688                $path = $base.$blogname.'/'; 
    689689        } 
    690         if ( domain_exists($mydomain, $path) ) 
     690        if ( domain_exists($mydomain, $path, $current_site->id) ) 
    691691                $errors->add('blogname', __('Sorry, that site already exists!')); 
    692692 
    693693        if ( username_exists( $blogname ) ) {