[wp-trac] Re: [WordPress Trac] #6056: Fatal error: Only variables can be passed by reference in /wp-admin/includes/media.php on line 36

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 2 00:04:33 GMT 2008


#6056: Fatal error: Only variables can be passed by reference in /wp-
admin/includes/media.php on line 36
-----------------------+----------------------------------------------------
 Reporter:  DD32       |        Owner:  anonymous
     Type:  defect     |       Status:  closed   
 Priority:  normal     |    Milestone:  2.5      
Component:  General    |      Version:  2.5      
 Severity:  normal     |   Resolution:  fixed    
 Keywords:  has-patch  |  
-----------------------+----------------------------------------------------
Comment (by darkdragon):

 That is fascinating. That code is basically:

 {{{
 $current = array_keys($tabs)[0];
 }}}

 It is too bad, but maybe more lobbying can be made to allow for the above
 code to function in PHP.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6056#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list