[wp-trac] [WordPress Trac] #18237: get_role triggers a PHP notice

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 25 10:05:50 UTC 2011


#18237: get_role triggers a PHP notice
--------------------------+--------------------
 Reporter:  elyobo        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.3
Component:  Users         |     Version:  3.2.1
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by scribu):

 I think making get_role() not return a reference would be a better fix,
 now that we're in PHP5 land.

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


More information about the wp-trac mailing list