[wp-trac] [WordPress Trac] #19222: Undefined index and incorrect behaviour in WP_User::set_role().

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 11 10:21:30 UTC 2012


#19222: Undefined index and incorrect behaviour in WP_User::set_role().
-----------------------------+-----------------------------
 Reporter:  elyobo           |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  Role/Capability  |     Version:  3.3
 Severity:  minor            |  Resolution:
 Keywords:  has-patch        |
-----------------------------+-----------------------------

Comment (by glatze):

 I have the same problem when I set the role this way
 {{{
 wp_update_user(array('ID' => $user_id, 'role' => $role));
 }}}
 because wp_update_user() calls wp_insert_user() which calls set_role().

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


More information about the wp-trac mailing list