Skip to content

Commit 8e551c2

Browse files
Apply suggestion from @sourcery-ai[bot]
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 162ed8d commit 8e551c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/Helpers/Misc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function get_file_infos( int $file_id ): array {
4444
'details' => get_file_detail( $file_name, $file_ext, $file_size ),
4545
'details_accessible' => get_file_detail( $file_name, $file_ext, get_accessible_file_size_label( $file_size ) ),
4646
'href' => $file_href,
47-
'caption' => wp_get_attachment_caption( $file_id ),
47+
'caption' => (string) wp_get_attachment_caption( $file_id ),
4848
];
4949
}
5050

0 commit comments

Comments
 (0)