mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 15:47:38 +02:00
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.' ) );
|
wp_die( __( 'Can’t create an empty site.' ) );
|
||||||
$blog = $_POST['blog'];
|
$blog = $_POST['blog'];
|
||||||
$domain = '';
|
$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'] );
|
$domain = strtolower( $blog['domain'] );
|
||||||
|
|
||||||
// If not a subdomain install, make sure the domain isn't a reserved word
|
// If not a subdomain install, make sure the domain isn't a reserved word
|
||||||
|
Loading…
Reference in New Issue
Block a user