Support » Themes and Templates » New Media Uploader

  • Hi,

    I’m trying to integrate the new media uploader of 3.5 into my theme.
    In the versions older then 3.5 I used this jQuery code, which worked perfect:

    jQuery(document).ready(function() {
    	jQuery('.upload-button').click(function() {
    		window.send_to_editor = function(html) {
    			imgurl = jQuery('img', html).attr('src');
    		post_id = jQuery('#post_ID').val();
    		tb_show('', 'media-upload.php?post_id='+post_id+'&type=image&TB_iframe=true');
    		return false;

    But now in 3.5 it’s still displaying the “old” uploader. But I would like to get the new uploader. Do I have to use a completely different code or are it just some small changes?

    Thanks in advance!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘New Media Uploader’ is closed to new replies.