mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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:
parent
3ddb3c0abb
commit
b14622b2ff
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user