[wp-trac] [WordPress Trac] #38885: add_to_blog is not handled in wp-activate.php when new user is added to site in user-new.php

WordPress Trac noreply at wordpress.org
Mon Nov 21 11:12:40 UTC 2016


#38885: add_to_blog is not handled in wp-activate.php when new user is added to
site in user-new.php
--------------------------------+-----------------------------
 Reporter:  warrenreeves        |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:  4.6.1
 Severity:  normal              |   Keywords:
  Focuses:  multisite           |
--------------------------------+-----------------------------
 Following on from the issue in  #26855, there is no feature which looks
 for the add_to_blog meta key and shows a home url to the user based on
 that

 On line 128 there is currently a check for the key 'blog_id' but there is
 no check for 'add_to_blog'.

 To recreate, add a new user is to a site in user-new.php, when the user
 clicks on the link in the activation email, wpmu_activate_signup() returns
 a $result that does not contain the blog_id key (which is the only key
 being checked). add_to_blog key is passed but there are no checks in place
 and the if statement goes to code which shows links to the network home
 when the links on this page should be the home url and login link of the
 current site.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38885>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list