[wp-trac] [WordPress Trac] #11973: Bad confirmation mail, WordPress MU

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 21 21:50:57 UTC 2010


#11973: Bad confirmation mail, WordPress MU
--------------------------+-------------------------------------------------
 Reporter:  charlie_hun   |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Validation    |     Version:  2.9.1     
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11973>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list