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
This commit is contained in:
Andrew Nacin 2013-06-26 20:42:01 +00:00
parent a85b87515e
commit a0601fabfe

View File

@ -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 );
}
}