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
This commit is contained in:
Andrew Nacin 2013-06-26 20:42:01 +00:00
parent 3ddb3c0abb
commit b14622b2ff
1 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,9 @@
case 'audio/wma': case 'audio/wma':
shortcode.wma = attachment.url; shortcode.wma = attachment.url;
break; break;
default:
// Render unsupported audio files as links.
return wp.media.string.link( props );
} }
} }