Wordpress WPMU Login consistency across multisite network
问题 I'm working on a WPMU multisite install but have run into a wee problem. I create a user during a signup process on my primary domain. With something like the following. $username = 'myname-'.time(); $user_id = wpmu_create_user($username,'anypassword','example@gmail.com'); add_user_to_blog(1, 5, 'subscriber'); $user = wp_signon(array( "user_login" => $username, "user_password" => 'anypassword', "remember" => true )); What I do is create the user, and then assign it to the primary domain only,