Changeset 18602
- Timestamp:
- 08/25/2011 06:22:17 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r18589 r18602 3221 3221 function wp_list_pluck( $list, $field ) { 3222 3222 foreach ( $list as $key => $value ) { 3223 $value = (array) $value; 3224 $list[ $key ] = $value[ $field ]; 3223 if ( is_object( $value ) ) 3224 $list[ $key ] = $value->$field; 3225 else 3226 $list[ $key ] = $value[ $field ]; 3225 3227 } 3226 3228
Note: See TracChangeset
for help on using the changeset viewer.