Skip to content

Commit fdb46eb

Browse files
committed
Revert "Remove existing thumbnail after retranscoding"
This reverts commit 5302ae4.
1 parent 7b3ed6d commit fdb46eb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

admin/rt-retranscode-admin.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -849,10 +849,6 @@ public function transcoded_thumbnails_added( $media_id = '' ) {
849849
wp_update_attachment_metadata( $media_id, $attach_data );
850850
} else {
851851
// Insert transcoded thumbnail attachment for video/audio files.
852-
$existing_thumbnail = get_post_thumbnail_id( $media_id );
853-
if ( ! empty( $existing_thumbnail ) ) {
854-
wp_delete_attachment( $existing_thumbnail, true );
855-
}
856852
$attachment_id = wp_insert_attachment( $attachment, $thumbnail_src, $media_id );
857853
}
858854

0 commit comments

Comments
 (0)