[wp-trac] [WordPress Trac] #18230: Optimize wp_list_pluck

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 2 18:59:21 UTC 2011


#18230: Optimize wp_list_pluck
-------------------------+------------------
 Reporter:  Otto42       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.3
Component:  Performance  |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------

Comment (by Otto42):

 Unfortunately, isset() returns false if $value->$field exists but is set
 to the null value. So it won't fit with all cases. Using is_object is
 safer.

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


More information about the wp-trac mailing list