Fix variation download file url save for Amazon S3 extension.

This commit is contained in:
Gerhard 2014-02-12 21:17:09 +02:00 committed by Coen Jacobs
parent b6a6f4a5c6
commit f0dc27a47e
1 changed files with 1 additions and 1 deletions

View File

@ -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 ++ ) {