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':
|
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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue