Make WordPress Core

Changes between Initial Version and Version 7 of Ticket #57136


Ignore:
Timestamp:
02/23/2024 02:49:01 AM (8 weeks ago)
Author:
costdev
Comment:

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  
    11This is better explained with an example:
    2 ```
     2{{{
    33wp> var_dump( wp_list_pluck( [ [ 'key1', 'val1' ], [ 'key2', 'val2' ] ], 1, 0 ));
    44array(2) {
     
    88  string(4) "val2"
    99}
    10 ```
     10}}}
    1111
    1212See the missing key?
    1313
    1414If we try with array_column it works correctly:
    15 ```
     15{{{
    1616wp> var_dump( array_column( [ [ 'key1', 'val1' ], [ 'key2', 'val2' ] ], 1, 0 ));
    1717array(2) {
     
    2121  string(4) "val2"
    2222}
    23 ```
     23}}}