[wp-trac] [WordPress Trac] #13757: Passing functions as call by ref parameter should be avoided

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 7 22:46:30 UTC 2010


#13757: Passing functions as call by ref parameter should be avoided
--------------------------+-------------------------------------------------
 Reporter:  TobiasBg      |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  General       |     Version:             
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------

Comment(by scribu):

 array_pop() should be replaced with end()

 array_shift() should be replaced with reset()

 but a temporary variable is still needed.

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


More information about the wp-trac mailing list