WordPress.org

Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#11973 closed defect (bug) (worksforme)

Bad confirmation mail, WordPress MU

Reported by: charlie_hun Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.9.1
Component: Multisite Keywords:
Focuses: Cc:

Description

Hello!

I have a WordPress MU with two sites.

domain1.tld is the site 1 (site_id 1), and the dashboard blog id is 10
domain2.tld is the site 2 (site_id 2), and the dashboard blog id is 1

If user register a new blog at site 2, he get the confirmation mail with wrong activation url, in this form: http://newblog.domain2.tld/wp-activate.php?hash

However, if user click the url, he look at the blog_id 1 design and url, etc.

If user register a new blog at site 1, the link is good, this form: http://domain1.tld/wp-activate.php?hash

If I modify the wpmu-functions.php file, at line 1162-1166 from:

	if( constant( "VHOST" ) == 'no' || $current_site->id != 1 ) {
		$activate_url = "http://" . $current_site->domain . $current_site->path . "wp-activate.php?key=$key";
	} else {
		$activate_url = "http://{$domain}{$path}wp-activate.php?key=$key";
	}

to:

	$activate_url = "http://" . $current_site->domain . $current_site->path . "wp-activate.php?key=$key";

the activation link is correct.

Change History (7)

#1 follow-up: @wpmuguru
12 years ago

In domain2.tld you should set your dashboard blog to be a blog in site_id 2 rather than a blog that's in site_id 1. The same applies to site_id 1- make it a blog in site_id 1.

#2 in reply to: ↑ 1 ; follow-up: @charlie_hun
12 years ago

Replying to wpmuguru:

In domain2.tld you should set your dashboard blog to be a blog in site_id 2 rather than a blog that's in site_id 1. The same applies to site_id 1- make it a blog in site_id 1.

yes, so set up this configuration. (site 1 - dashboard blog id 10; site 2 - dashboard blog id 1, site 3 - dashboard blog id 351)

I added third site, and this site (with the original code) is send correct (domain3.tld/wp-act...) in the mail.

#3 @ryan
12 years ago

  • Component changed from Validation to Multisite

#4 in reply to: ↑ 2 ; follow-up: @wpmuguru
12 years ago

Replying to charlie_hun:

yes, so set up this configuration. (site 1 - dashboard blog id 10; site 2 - dashboard blog id 1, site 3 - dashboard blog id 351)

Blog id 1 is in site 1 not site 2. Your dashboard blog has to be a blog in the same MU site for the registration process to work properly.

#5 @wpmuguru
12 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

#6 in reply to: ↑ 4 @charlie_hun
12 years ago

Replying to wpmuguru:

Replying to charlie_hun:

yes, so set up this configuration. (site 1 - dashboard blog id 10; site 2 - dashboard blog id 1, site 3 - dashboard blog id 351)

Blog id 1 is in site 1 not site 2. Your dashboard blog has to be a blog in the same MU site for the registration process to work properly.

Yes, in normally.... but i use an individual (but regular) structure.

If you can, I reproduce the error for you.

#7 @nacin
11 years ago

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