This commit is contained in:
claudiulodro 2017-05-04 14:27:40 -07:00
parent b907aa74f6
commit 5a963f74c2
1 changed files with 5 additions and 2 deletions

View File

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