Ticket #17397: 17397.diff
File 17397.diff, 622 bytes (added by , 11 years ago) |
---|
-
wp-admin/network/site-new.php
39 39 if ( ! is_array( $_POST['blog'] ) ) 40 40 wp_die( __( 'Can’t create an empty site.' ) ); 41 41 $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'] ); 45 43 46 44 // If not a subdomain install, make sure the domain isn't a reserved word 47 45 if ( ! is_subdomain_install() ) {