Old Media Uploader - Change to WP 3.5
Issue #21
new
The uploader for sermon mp3s and notes is using the old media manager. This should be updated to the new media manager as of WordPress 3.5.
Here is some sample js code to help (note: this code has not been tested)
$(document).on("click", ".custom_media_upload", function(){
var send_attachment_bkp = wp.media.editor.send.attachment;
var button = $(this);
wp.media.editor.send.attachment = function(props, attachment) {
$('.wpfc_upload_status.).val(attachment.url);
$('.wpfc_upload_status.).css('display', 'inline-block');
//Send the attachment
wp.media.editor.send.attachment = send_attachment_bkp;
}
//Open the media editor
wp.media.editor.open(button);
return false;
});
I just put in a pull request that does this if it helps as well. We've tested it and are using that on our church's site now.