Merge pull request #20842 from rnaby/180718-221942-wc-data
Unnecessary Variables and Spaces Removed
This commit is contained in:
commit
22059880cd
|
@ -429,9 +429,7 @@ abstract class WC_Data {
|
|||
$array_key = $array_keys ? current( $array_keys ) : false;
|
||||
} else {
|
||||
// Find matches by key.
|
||||
$matches = array();
|
||||
$ids_to_keys = wp_list_pluck( $this->meta_data, 'key', 'id' );
|
||||
|
||||
$matches = array();
|
||||
foreach ( $this->meta_data as $meta_data_array_key => $meta ) {
|
||||
if ( $meta->key === $key ) {
|
||||
$matches[] = $meta_data_array_key;
|
||||
|
|
Loading…
Reference in New Issue