From b14622b2ff62ecbbd8ac3bf03e0f48e2cdbd3a4c 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: http://core.svn.wordpress.org/trunk@24519 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 ); } }