[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:26:11 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 hakre):

 Replying to [comment:7 scribu]:
 > By the way, you should add a short explanatory comment to the line with
 unset(), as it's not obvious why it's there.

 Do you really think it is necessary to explain how PHP works? What should
 be left there? A link to the PHP manual? What's the part you think needs
 to be explained in a comment? That unset is removing references from
 variables?

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


More information about the wp-trac mailing list