Revert "Fix duplicated custom fields after import products from .csv file"

This commit is contained in:
Claudio Sanches 2020-05-14 14:06:01 -03:00 committed by GitHub
parent 2462877c56
commit c09a269589
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -577,6 +577,7 @@ class WC_Product_CSV_Importer_Controller {
$headers = array(); $headers = array();
foreach ( $raw_headers as $key => $field ) { foreach ( $raw_headers as $key => $field ) {
$field = strtolower( $field );
$index = $num_indexes ? $key : $field; $index = $num_indexes ? $key : $field;
$headers[ $index ] = $field; $headers[ $index ] = $field;