[wp-trac] [WordPress Trac] #16895: wp_list_pluck cannot be used with arrays of references

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 19 18:30:04 UTC 2011


#16895: wp_list_pluck cannot be used with arrays of references
-------------------------+-----------------------------
 Reporter:  dd32         |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  General      |     Version:  3.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------

Comment (by scribu):

 No, I wasnt suggesting explaining what unset() does, but the reason it's
 used there:

 {{{unset( $list[ $key ] ); // avoids problems with reference values}}}

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


More information about the wp-trac mailing list