That’s not really the issue nor the full picture. It used to be used (and still is) in previous WP versions which we have to support. In addition, wpmu_validate_blog_signup() is also still used in adding new sites through wp-signup.php which Cloner add-ons use to allow cloning from self-serve front end user registration. The bottom line is that it’s WP Multisite’s original function for validating user input on site names for a variety of potential issues that would break a site if it was allowed to be created with an invalid name.
Thank you for your help with the additional info! Sites with dashes used to previously work in the Cloner, but with your help we isolated the issue. Recent WP version (for whatever crazy reason) changed the text of that error message, which is the only way to isolate and bypass that specific validation issue while keeping all the others intact (invalid characters, existing site names, etc.). The meaning was identical but the wording is now slightly different.
OLD message wording:
“Only lowercase letters (a-z) and numbers are allowed.”
NEW message wording:
“Site names can only contain lowercase letters (a-z) and numbers.”
That’s why the previous filter fix / work around we posted didn’t work any more and why it broke in the Cloner in the first place.
In order to support older versions of WP and new versions of WP at the same time, we’ve made that validation check more generic which should find all variations by only matching on the common:
“lowercase letters (a-z) and numbers”
We’ve tested and verified this works and pushed an update to the Cloner now on 3.0.5.5.
Thanks again for your help with this, and please let us know if the update does not work for you.
All the best!