Merge pull request #20273 from woocommerce/fix/20268

Fix broken product import file uploads on windows
This commit is contained in:
Mike Jolley 2018-05-29 15:27:40 +01:00 committed by GitHub
commit 5cfd2f0f7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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