From 5a963f74c2aecc00656777eb869cb581bf61d7ae Mon Sep 17 00:00:00 2001 From: claudiulodro Date: Thu, 4 May 2017 14:27:40 -0700 Subject: [PATCH] Clean p --- includes/admin/importers/class-wc-product-importer.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/admin/importers/class-wc-product-importer.php b/includes/admin/importers/class-wc-product-importer.php index d2131b99741..76fec568b09 100644 --- a/includes/admin/importers/class-wc-product-importer.php +++ b/includes/admin/importers/class-wc-product-importer.php @@ -196,7 +196,6 @@ class WC_Product_Importer extends WP_Importer { while( false !== ( $row = fgetcsv( $handle, 0, $this->delimiter ) ) ) { $data['data'][] = $row; - $position = ftell( $handle ); if ( ( $args['end_pos'] > 0 && ftell( $handle ) >= $args['end_pos'] ) || 0 === --$args[ 'lines'] ) { @@ -217,7 +216,11 @@ class WC_Product_Importer extends WP_Importer { } /** - * @param array $mapping 'raw column name' => 'mapped column name' + * Map raw headers to known headers. + * + * @param array $data + * @param array $mapping 'raw column name' => 'schema column name' + * @return array */ public function map_headers( $data, $mapping ) { $data['headers'] = array();