Opened 2 years ago

Last modified 2 years ago

#16487 new defect (bug)

Bug wp_new_user_notification() when using it in multisite mode

Reported by: wp_user59 Owned by:
Priority: normal Milestone: Awaiting Review
Component: General Version: 3.0.5
Severity: normal Keywords: dev-feedback
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.

Change History (1)

  • Keywords dev-feedback added; pluggable user notification multi site removed

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/.

Note: See TracTickets for help on using tickets.