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

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 10 19:18:53 UTC 2010


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

Comment(by scribu):

 Just realized that instead of {{{array_shift( array_keys( $var ) )}}} you
 could simply use {{{key( $var )}}}.

 Too bad there's no equivalent for {{{array_pop( array_keys( $var ) )}}}.

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


More information about the wp-trac mailing list