[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 16:16:02 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:3 scribu]:
 > hakre: Instead of academic debates over unlikely scenarios, would you
 agree that
 > the proposed enhancement is useful and doesn't actually break anything
 else?

 Well I thought the function is already doing the job it has been made for
 - see [15686], #15016. :)

 However,  you find a new patch attached that will de-reference array
 members before setting them again. This should make the original cause of
 the problem more visible.

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


More information about the wp-trac mailing list