Changes between Initial Version and Version 7 of Ticket #57136
- Timestamp:
- 02/23/2024 02:49:01 AM (8 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #57136
- Property Keywords has-patch needs-testing added
-
Property
Version
changed from
to
4.7
-
Ticket #57136 – Description
initial v7 1 1 This is better explained with an example: 2 ``` 2 {{{ 3 3 wp> var_dump( wp_list_pluck( [ [ 'key1', 'val1' ], [ 'key2', 'val2' ] ], 1, 0 )); 4 4 array(2) { … … 8 8 string(4) "val2" 9 9 } 10 ``` 10 }}} 11 11 12 12 See the missing key? 13 13 14 14 If we try with array_column it works correctly: 15 ``` 15 {{{ 16 16 wp> var_dump( array_column( [ [ 'key1', 'val1' ], [ 'key2', 'val2' ] ], 1, 0 )); 17 17 array(2) { … … 21 21 string(4) "val2" 22 22 } 23 ``` 23 }}}