WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 7 years ago

Last modified 7 years ago

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

Change History (3)

#1 @solarissmoke
9 years ago

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

#2 @c3mdigital
7 years ago

  • Keywords close added; dev-feedback removed
  • Resolution set to invalid
  • Status changed from new to closed
  • Version changed from 3.0.5 to 2.0

#3 @helen
7 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.