[wp-trac] [WordPress Trac] #15316: Adding users to a blog can set the primary_domain to an invalid value

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 4 09:01:33 UTC 2010


#15316: Adding users to a blog can set the primary_domain to an invalid value
--------------------------+-------------------------------------------------
 Reporter:  westi         |       Owner:  westi
     Type:  defect (bug)  |      Status:  new  
 Priority:  high          |   Milestone:  3.1  
Component:  Multisite     |     Version:  3.0  
 Severity:  major         |    Keywords:       
--------------------------+-------------------------------------------------
 In {{{add_user_to_blog}}} we update the primary_domain of a user to the
 {{{$blog_id}}} passed in if the user doesn't have a primary_domain yet.

 When adding an existing user to an existing site in a multisite setup we
 pass a blank string to this function ''.

 In a shared usertable setup where the users were all defined elsewhere
 (e.g. shared with bbPress) this cause use to create blank primary_domain
 entries in the database.

 This then causes the code in {{{get_active_blog_for_user()}}} to add the
 user as a subscriber on the current blog - even if actually they already
 had a role!

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


More information about the wp-trac mailing list