Ticket #18230: 18230.diff
File 18230.diff, 499 bytes (added by , 13 years ago) |
---|
-
wp-includes/functions.php
3202 3202 */ 3203 3203 function wp_list_pluck( $list, $field ) { 3204 3204 foreach ( $list as $key => $value ) { 3205 $value = (array) $value;3206 $list[ $key ] = $value[ $field ];3205 if ( is_object( $value ) ) $list[ $key ] = $value->$field; 3206 else $list[ $key ] = $value[ $field ]; 3207 3207 } 3208 3208 3209 3209 return $list;