Merge pull request #20273 from woocommerce/fix/20268
Fix broken product import file uploads on windows
This commit is contained in:
commit
5cfd2f0f7a
|
@ -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'] ) ) {
|
||||
|
|
Loading…
Reference in New Issue