WordPress.org

Make WordPress Core

Ticket #16895: 16895.2.patch

File 16895.2.patch, 483 bytes (added by hakre, 4 years ago)

remove possible references

  • wp-includes/functions.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    30943094function wp_list_pluck( $list, $field ) { 
    30953095        foreach ( $list as $key => $value ) { 
    30963096                $value = (array) $value; 
     3097                unset( $list[ $key ] ); # remove possible references 
    30973098                $list[ $key ] = $value[ $field ]; 
    30983099        } 
    30993100