[wp-trac] [WordPress Trac] #10285: remove_role not working / code needs change

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 13 10:45:26 UTC 2009


#10285: remove_role not working / code needs change
-----------------------------+----------------------------------------------
 Reporter:  5ubliminal       |       Owner:                 
     Type:  defect (bug)     |      Status:  assigned       
 Priority:  normal           |   Milestone:  2.9            
Component:  Role/Capability  |     Version:  2.8            
 Severity:  normal           |    Keywords:  roles has-patch
-----------------------------+----------------------------------------------
Changes (by Denis-de-Bernardy):

  * keywords:  roles close => roles has-patch


Comment:

 maybe not, actually. based on the var_dump, $this->roles[$role] would
 always be empty. should be $this->caps[$role] indeed, or in_array($role,
 $this->roles).

 Attaching an untest patch.

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


More information about the wp-trac mailing list