Pass varaible

This commit is contained in:
Mike Jolley 2018-05-29 15:25:11 +01:00
parent e3a37f81ee
commit 800701adb0
1 changed files with 2 additions and 1 deletions

View File

@ -295,7 +295,8 @@ class WC_Product_CSV_Importer_Controller {
'test_form' => false,
'mimes' => $valid_filetypes,
);
$upload = wp_handle_upload( $_FILES['import'], $overrides ); // WPCS: sanitization ok.
$import = $_FILES['import']; // WPCS: sanitization ok, input var ok.
$upload = wp_handle_upload( $import, $overrides );
if ( isset( $upload['error'] ) ) {
return new WP_Error( 'woocommerce_product_csv_importer_upload_error', $upload['error'] );