Make WordPress Core

Ticket #17397: 17397.diff

File 17397.diff, 622 bytes (added by tlovett1, 11 years ago)

Remove domain checks in network/site-new.php

  • wp-admin/network/site-new.php

     
    3939        if ( ! is_array( $_POST['blog'] ) )
    4040                wp_die( __( 'Can’t create an empty site.' ) );
    4141        $blog = $_POST['blog'];
    42         $domain = '';
    43         if ( preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) )
    44                 $domain = strtolower( $blog['domain'] );
     42        $domain = strtolower( $blog['domain'] );
    4543
    4644        // If not a subdomain install, make sure the domain isn't a reserved word
    4745        if ( ! is_subdomain_install() ) {