I figured. The rest of the functions seems solid, it’s just that part
// all numeric?
if ( preg_match( '/^[0-9]*$/', $blogname ) ) {
$errors->add( 'blogname', __( 'Sorry, site names must have letters too!' ) );
}
and honestly this part too is unnecesary (min lenght = 1 should be enough.. why 4?!)
$minimum_site_name_length = apply_filters( 'minimum_site_name_length', 4 );
if ( strlen( $blogname ) < $minimum_site_name_length ) {
/* translators: %s: minimum site name length */
$errors->add( 'blogname', sprintf( _n( 'Site name must be at least %s character.', 'Site name must be at least %s characters.', $minimum_site_name_length ), number_format_i18n( $minimum_site_name_length ) ) );
}
that you could remove, from a custom function.
I need to clone a few more sites soon, do you think this could be implemented relateively soon?
Thank you for taking it into consideration!
-
This reply was modified 5 years, 2 months ago by Duke.
-
This reply was modified 5 years, 2 months ago by Duke.
-
This reply was modified 5 years, 2 months ago by Duke.