[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
Sat Mar 1 23:19:58 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 DD32):
Some info on it: http://the-stickman.com/web-development/php/php-505
-fatal-error-only-variables-can-be-passed-by-reference/
For reference, This would be valid and would work (Because its saved to a
variable first..)
{{{
$current = array_shift( $keys = array_keys($tabs) );
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/6056#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list