From a0601fabfe4ad8dee6b75d1ca50dfe0686eae74e Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 26 Jun 2013 20:42:01 +0000 Subject: [PATCH] Media: Render unsupported audio files as links instead of mediaelement. props kovshenin, fixes #23798. git-svn-id: https://develop.svn.wordpress.org/trunk@24519 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/media-editor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/js/media-editor.js b/wp-includes/js/media-editor.js index 3fa20a6ab9..1fcdbe181c 100644 --- a/wp-includes/js/media-editor.js +++ b/wp-includes/js/media-editor.js @@ -126,6 +126,9 @@ case 'audio/wma': shortcode.wma = attachment.url; break; + default: + // Render unsupported audio files as links. + return wp.media.string.link( props ); } }