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

WordPress Trac noreply at wordpress.org
Tue Dec 20 20:37:44 UTC 2016


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

Comment (by Mista-Flo):

 @Ipstenu Ok I got it, I had a plugin installed that set an empty role for
 the new user, so that's why I had a wp_die error in the login, sorry for
 the bad test and time consuming.

 I have tested without the plugin and all worked like you said, WordPress
 redirect me to the good admin of the subsite. So no issue with the login.
 But the homepage link displayed is always the primary website home_url
 instead of the subsite one, maybe we should handle this no ? And if we
 look at my patch and the ticket description, there is a var
 {{{$result['blog_id']}}} that doesn't exist, we should replace it by
 {{{$result['meta']['add_to_blog']}}}

 So @tmoore41 are you sure your user has a role at the registration ? Check
 your installed plugins, try to disable all of them and test again if you
 encounter the same behavior.

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


More information about the wp-trac mailing list