[wpmu-trac] [WordPress MU Trac] #1076: Infinite Loop on New User Login

WordPress MU Trac wpmu-trac at lists.automattic.com
Fri Jul 31 01:12:56 UTC 2009


#1076: Infinite Loop on New User Login
----------------------------+-----------------------------------------------
 Reporter:  deannas         |       Owner:  somebody 
     Type:  enhancement     |      Status:  new      
 Priority:  normal          |   Milestone:           
Component:  Administration  |     Version:  2.8.2    
 Severity:  normal          |    Keywords:  has-patch
----------------------------+-----------------------------------------------

Comment(by jamescollins):

 The first patch ({{{1076.diff}}}) fixes the underlying bug.

 Replying to [comment:5 jamescollins]:
 > This won't fix the existing user accounts that may be broken (which have
 a wp_usermeta record of primary_blog = 1 and no wp_1_capabilities usermeta
 record).
 >
 > We could write an upgrade task that did a get_blogs_of_user() on each
 user account, and if the function only returns one blog, then update their
 primary_blog option to the blog id of the single blog.
 >
 > I'm not sure of the best place to do this though.

 The second patch ({{{1076_fix_existing.patch}}}) is a solution to correct
 an existing user record that was incorrectly created due to the above bug.

 I suggest that both patches be applied.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/1076#comment:6>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list