Merge pull request #20842 from rnaby/180718-221942-wc-data

Unnecessary Variables and Spaces Removed
This commit is contained in:
Peter Fabian 2018-07-19 13:49:25 +02:00 committed by GitHub
commit 22059880cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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;