WordPress.org

Make WordPress Core

Ticket #15554: 15554.diff

File 15554.diff, 612 bytes (added by wpmuguru, 7 years ago)
  • wp-admin/network/site-new.php

     
    3434                wp_die( __( 'Can’t create an empty site.' ) );
    3535        $blog = $_POST['blog'];
    3636        $domain = '';
    37         if ( ! preg_match( '/(--)/', $blog['domain'] ) && preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) )
     37        if ( preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) )
    3838                $domain = strtolower( $blog['domain'] );
    3939
    4040        // If not a subdomain install, make sure the domain isn't a reserved word