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:
parent
a85b87515e
commit
a0601fabfe
@ -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…
x
Reference in New Issue
Block a user