Skip to content

Commit 3094049

Browse files
committed
Fix webm audio files
1 parent 76e1580 commit 3094049

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

php/class-delivery.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,11 @@ public function is_deliverable( $attachment_id ) {
387387
if ( $is ) {
388388
$meta = wp_get_attachment_metadata( $attachment_id, true );
389389
$is = ! empty( $meta['width'] ) && ! empty( $meta['height'] );
390+
391+
// Webm audio files don't have width and height.
392+
if ( ! $is && ! empty( $meta['mime_type'] ) && 'audio/webm' === $meta['mime_type'] ) {
393+
$is = true;
394+
}
390395
}
391396

392397
if ( ! $is ) {

0 commit comments

Comments
 (0)