do_action( 'wpmu_activate_user',
$user_id,
$password,
$meta );
return array
( 'user_id' =>
$user_id,
'password' =>
$password,
'meta' =>
$meta,
);
} $blog_id =
wpmu_create_blog( $signup->domain,
$signup->path,
$signup->title,
$user_id,
$meta,
get_current_network_id() );
// TODO: What to do if we create a user but cannot create a blog?
if ( is_wp_error( $blog_id ) ) { /*
* If blog is taken, that means a previous attempt to activate this blog
* failed in between creating the blog and setting the activation flag.
* Let's just set the active flag and instruct the user to reset their password.
*/
if ( 'blog_taken' ===
$blog_id->
get_error_code() ) { $blog_id->
add_data( $signup );
$wpdb->
update(