[wp-trac] [WordPress Trac] #18932: WP_User::set_role leaves user object without any caps when role does not change

WordPress Trac noreply at wordpress.org
Wed Nov 7 17:16:38 UTC 2012


#18932: WP_User::set_role leaves user object without any caps when role does not
change
-----------------------------+---------------------
 Reporter:  jammitch         |       Owner:  ryan
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  3.5
Component:  Role/Capability  |     Version:  3.1
 Severity:  minor            |  Resolution:  fixed
 Keywords:  has-patch        |
-----------------------------+---------------------
Changes (by ryan):

 * owner:   => ryan
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"22418"]:
 {{{
 #!CommitTicketReference repository="" revision="22418"
 When using WP_User::set_role() to set the role, don't unset all caps when
 the requested role matches the current role.

 Props scribu, jammitch
 fixes #18932
 }}}

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


More information about the wp-trac mailing list