[wp-trac] [WordPress Trac] #39311: New user activation welcome page links to the wrong site

WordPress Trac noreply at wordpress.org
Sat May 9 00:08:14 UTC 2020


#39311: New user activation welcome page links to the wrong site
-------------------------------------------------+-------------------------
 Reporter:  tmoore41                             |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  5.5
Component:  Login and Registration               |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing needs-       |     Focuses:  multisite
  refresh                                        |
-------------------------------------------------+-------------------------

Comment (by pkarjala):

 @mukesh27 new diff added, this falls back on adding the blog path in a
 multisite setup to the URL for the landing page the first time a user
 activates their account, or after a user attempts to activate an already
 activated account.  It also make sure that the Activate form goes to the
 correct subsite based on which subsite it was called on.

 It may be more prudent to update `network_site_url()` to be savvy about
 which subsite it is being called on, but this will suffice to fix this
 issue.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/39311#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list