Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 13613ab

Browse files
committed
Fix attachment file url
1 parent ec87244 commit 13613ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

admin/rt-transcoder-handler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,8 +875,9 @@ public function add_transcoded_files( $file_post_array, $attachment_id, $job_for
875875

876876
$uploaded_file = _wp_relative_upload_path( $upload_info['file'] );
877877

878-
if ( $uploaded_file ) {
878+
if ( ! empty( $uploaded_file ) ) {
879879
$transcoded_files[ $key ][] = $uploaded_file;
880+
update_post_meta( $attachment_id, '_wp_attached_file', $uploaded_file );
880881
}
881882
} else {
882883
$flag = esc_html__( 'Could not read file.', 'transcoder' );

0 commit comments

Comments
 (0)