#16487 closed defect (bug) (invalid)
Bug wp_new_user_notification() when using it in multisite mode
Reported by: | wp_user59 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.0 |
Component: | General | Keywords: | close |
Focuses: | Cc: |
Description
In the file "wp-includes/pluggable.php"
into the function named "wp_new_user_notification"
$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
This is correct but, in mutisite mode,
that one return the site name where you are logged into, not the blogname you are going to create.
$message .= wp_login_url() . "\r\n";
for example, i try to create test1.mynamesite.com
i'm logged on primarysite.mynamesite.com with my super admin account.
Into the mail i recieved, with "Your Username and password"
the url is "http://primarysite.mynamesite.com/wp_login.php"
it had to be "http://test1.mynamesite.com/wp_login.php".
In the other mail recieved with the complete message, acces code and url, all is perfect, just in the mail when adding the user to the new site.
Hmm, I'm not sure this is a bug.
Users are not unique to sites - one user can be assigned to multiple sites or even none (if you create a new user manually). The only login link that will *always* be valid is
http://primarysite.mynamesite.com/wp_login.php
.Besides, once the user logs in they will automatically be redirected to the admin page for their primary site (if they are assigned any) - in this case
http://test1.mynamesite.com/wp-admin/
.