[wp-trac] [WordPress Trac] #15627: wp_insert_user should not assume a default role

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 15 17:25:29 UTC 2011


#15627: wp_insert_user should not assume a default role
-------------------------------------+-----------------------------
 Reporter:  nickmomrik               |       Owner:  westi
     Type:  defect (bug)             |      Status:  accepted
 Priority:  low                      |   Milestone:  Future Release
Component:  Users                    |     Version:  3.1
 Severity:  minor                    |  Resolution:
 Keywords:  needs-patch westi-likes  |
-------------------------------------+-----------------------------
Changes (by dllh):

 * cc: daryl@… (added)


Comment:

 I'm not clear on the repro for this. When I add a user at the top level of
 network admin (ie, not from within the user area for a particular blog),
 the user is associated with no sites. This is evident in both the user
 list and in wp_usermeta, for which there is no wp_capabilities entry for
 the user I added. When I add a user to a particular site, he's added to
 that site only (and not the main blog, unless the site I'm adding him to
 is the main blog).

 I would like to work on this but am not sure how to provoke the bug. I've
 tried adding users in various ways and so far have not managed to add a
 user to the default blog without explicitly trying to.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15627#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list