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

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 13 11:07:28 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 needs-testing
-----------------------------+----------------------------------------------
Changes (by dd32):

  * keywords:  roles has-patch => roles has-patch needs-testing


Comment:

 not sure that patch does justice either.. specifically you only changed 1
 of the references to the array on that line.

 That being said, with that change, i'm getting a notice:
 {{{
  Notice: Trying to get property of non-object in C:\www\wordpress\wp-
 includes\capabilities.php on line 537
 }}}
 http://core.trac.wordpress.org/browser/trunk/wp-
 includes/capabilities.php#L537

 ..Seems $role is set to (string)$roll_name, and not a roll object.. not
 sure why.. could be due to the test code i'm using, that being said, it
 needs more testing.

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


More information about the wp-trac mailing list