Allow creating sites with IDN domains. Props SergeyBiryukov, wpmuguru. fixes #15554
git-svn-id: http://svn.automattic.com/wordpress/trunk@18473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
496081f898
commit
e3418e214e
|
@ -34,7 +34,7 @@ if ( isset($_REQUEST['action']) && 'add-site' == $_REQUEST['action'] ) {
|
|||
wp_die( __( 'Can’t create an empty site.' ) );
|
||||
$blog = $_POST['blog'];
|
||||
$domain = '';
|
||||
if ( ! preg_match( '/(--)/', $blog['domain'] ) && preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) )
|
||||
if ( preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) )
|
||||
$domain = strtolower( $blog['domain'] );
|
||||
|
||||
// If not a subdomain install, make sure the domain isn't a reserved word
|
||||
|
|
Loading…
Reference in New Issue