parent
b123dc87a3
commit
75b01c5201
|
@ -1229,7 +1229,7 @@ class WC_Meta_Box_Product_Data {
|
|||
$file_names = isset( $_POST['_wc_file_names'] ) ? $_POST['_wc_file_names'] : array();
|
||||
$file_urls = isset( $_POST['_wc_file_urls'] ) ? array_map( 'trim', $_POST['_wc_file_urls'] ) : array();
|
||||
$file_url_size = sizeof( $file_urls );
|
||||
$allowed_file_types = get_allowed_mime_types();
|
||||
$allowed_file_types = apply_filters( 'woocommerce_downloadable_file_allowed_mime_types', get_allowed_mime_types() );
|
||||
|
||||
for ( $i = 0; $i < $file_url_size; $i ++ ) {
|
||||
if ( ! empty( $file_urls[ $i ] ) ) {
|
||||
|
|
Loading…
Reference in New Issue