Merge pull request #4536 from om4james/issue-4535
Fix for #4535 (PHP Warning)
This commit is contained in:
commit
1c5ef68422
|
@ -281,7 +281,7 @@ class WC_Product {
|
|||
|
||||
// Set default name
|
||||
if ( empty( $file['name'] ) ) {
|
||||
$downloadable_files[ $key ]['name'] = wc_get_filename_from_url( $file );
|
||||
$downloadable_files[ $key ]['name'] = wc_get_filename_from_url( $file['file'] );
|
||||
}
|
||||
|
||||
// Filter URL
|
||||
|
|
Loading…
Reference in New Issue