$illegal_names =
get_site_option( 'illegal_names'
);
if ( false ==
$illegal_names ) { $illegal_names = array
( 'www', 'web', 'root', 'admin', 'main', 'invite', 'administrator'
);
add_site_option( 'illegal_names',
$illegal_names );
} /*
* On sub dir installations, some names are so illegal, only a filter can
* spring them from jail.
*/
if ( !
is_subdomain_install() ) { $illegal_names =
array_merge( $illegal_names,
get_subdirectory_reserved_names() );
} if ( empty( $blogname ) ) { $errors->
add( 'blogname',
__( 'Please enter a site name.'
) );
} if ( preg_match( '/[^a-z0-9]+/',
$blogname ) ) { $errors->
add( 'blogname',
__( 'Site names can only contain lowercase letters (a-z) and numbers.'
) );
} if ( in_array( $blogname,
$illegal_names, true
) ) {