Ticket #20019: wp-ms-dotdash.patch
File wp-ms-dotdash.patch, 706 bytes (added by , 13 years ago) |
---|
-
wp-includes/ms-functions.php
561 561 if ( empty( $blogname ) ) 562 562 $errors->add('blogname', __('Please enter a site name')); 563 563 564 if ( preg_match( '/[^a-z0-9 ]+/', $blogname ) )565 $errors->add('blogname', __('Only lowercase letters and numbersallowed'));564 if ( preg_match( '/[^a-z0-9\.\-]+/', $blogname ) ) 565 $errors->add('blogname', __('Only lowercase letters, numbers, dash and period allowed')); 566 566 567 567 if ( in_array( $blogname, $illegal_names ) == true ) 568 568 $errors->add('blogname', __('That name is not allowed'));