Fix variation download file url save for Amazon S3 extension.
This commit is contained in:
parent
b6a6f4a5c6
commit
f0dc27a47e
|
@ -1451,7 +1451,7 @@ class WC_Meta_Box_Product_Data {
|
||||||
|
|
||||||
$files = array();
|
$files = array();
|
||||||
$file_names = isset( $_POST['_wc_variation_file_names'][ $variation_id ] ) ? array_map( 'wc_clean', $_POST['_wc_variation_file_names'][ $variation_id ] ) : array();
|
$file_names = isset( $_POST['_wc_variation_file_names'][ $variation_id ] ) ? array_map( 'wc_clean', $_POST['_wc_variation_file_names'][ $variation_id ] ) : array();
|
||||||
$file_urls = isset( $_POST['_wc_variation_file_urls'][ $variation_id ] ) ? array_map( 'esc_url_raw', array_map( 'trim', $_POST['_wc_variation_file_urls'][ $variation_id ] ) ) : array();
|
$file_urls = isset( $_POST['_wc_variation_file_urls'][ $variation_id ] ) ? array_map( 'wc_clean', $_POST['_wc_variation_file_urls'][ $variation_id ] ) : array();
|
||||||
$file_url_size = sizeof( $file_urls );
|
$file_url_size = sizeof( $file_urls );
|
||||||
|
|
||||||
for ( $ii = 0; $ii < $file_url_size; $ii ++ ) {
|
for ( $ii = 0; $ii < $file_url_size; $ii ++ ) {
|
||||||
|
|
Loading…
Reference in New Issue