diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php
index f2dbbc750f..37867626d9 100644
a
|
b
|
|
5 | 5 | * @package WordPress |
6 | 6 | * @subpackage Multisite |
7 | 7 | * @since 3.0.0 |
| 8 | * @since 4.9.7 |
8 | 9 | */ |
9 | 10 | |
10 | 11 | /** |
… |
… |
function wpmu_validate_blog_signup( $blogname, $blog_title, $user = '' ) { |
617 | 618 | $errors->add( 'blogname', __( 'Please enter a site name.' ) ); |
618 | 619 | } |
619 | 620 | |
620 | | if ( preg_match( '/[^a-z0-9]+/', $blogname ) ) { |
621 | | $errors->add( 'blogname', __( 'Site names can only contain lowercase letters (a-z) and numbers.' ) ); |
| 621 | if ( preg_match( '/[^a-z0-9-]+/', $blogname ) ) { |
| 622 | $errors->add( 'blogname', __( 'Site names can only contain lowercase letters (a-z) , hyphens and numbers.' ) ); |
622 | 623 | } |
623 | 624 | |
624 | 625 | if ( in_array( $blogname, $illegal_names ) ) { |