From 8c18a9a796e740fc16b9b6a2b319002ab2b3a24c Mon Sep 17 00:00:00 2001 From: Amaan Khan Date: Fri, 10 Mar 2023 15:01:51 +0530 Subject: [PATCH] refactor: updates conditional check for mp3 files so that re-transcode button appears for m4a files --- admin/rt-retranscode-admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/rt-retranscode-admin.php b/admin/rt-retranscode-admin.php index 461b844a..a516aa57 100644 --- a/admin/rt-retranscode-admin.php +++ b/admin/rt-retranscode-admin.php @@ -175,7 +175,7 @@ public function add_media_row_action( $actions, $post ) { 'video/' !== substr( $post->post_mime_type, 0, 6 ) && 'application/pdf' !== $post->post_mime_type ) || - 'audio/mpeg' === $post->post_mime_type || + ( 'audio/mpeg' === $post->post_mime_type && 'mp3' === pathinfo( $post->guid, PATHINFO_EXTENSION ) ) || ! current_user_can( $this->capability ) ) { return $actions;