From d8edc8a965574b861136679f249a2b5c0920126d Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 31 May 2017 15:07:07 +0100 Subject: [PATCH] Always map --- .../importers/class-wc-product-csv-importer-controller.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/includes/admin/importers/class-wc-product-csv-importer-controller.php b/includes/admin/importers/class-wc-product-csv-importer-controller.php index 251b4cf025c..11cc615513d 100644 --- a/includes/admin/importers/class-wc-product-csv-importer-controller.php +++ b/includes/admin/importers/class-wc-product-csv-importer-controller.php @@ -281,12 +281,6 @@ class WC_Product_CSV_Importer_Controller { return; } - // Check if all fields matches. - if ( 0 === count( array_diff( $mapped_items, $this->get_default_fields() ) ) ) { - wp_redirect( esc_url_raw( add_query_arg( array( 'auto_map' => 1 ), $this->get_next_step_link() ) ) ); - exit; - } - include_once( dirname( __FILE__ ) . '/views/html-csv-import-mapping.php' ); }