Skip to content

Commit b0a4af6

Browse files
committed
Fix multiple files to pass through filter_value
1 parent 4868691 commit b0a4af6

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ You can hide a row by adding a hook. Checkout this example:
259259
= 2.3.9 on May 5, 2025 =
260260

261261
* Fixed: PHP notice in WordPress 6.8 caused by initializing product translations too early.
262+
* Fixed: The download URL of an Upload Field with multiple files was not passed through `gfexcel_field_value`.
262263

263264
= 2.3.8 on January 27, 2025 =
264265

src/Field/FileUploadField.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@ public function getRows( ?array $entry = null ): iterable {
8181

8282
foreach ( $files as $file ) {
8383
yield $this->wrap( [
84-
$this->field->get_download_url( $file, $this->should_force_download() ),
84+
$this->filter_value(
85+
$this->field->get_download_url( $file, $this->should_force_download() ),
86+
$entry ?? []
87+
),
8588
] );
8689
}
8790
}

0 commit comments

Comments
 (0)