2481 posts
Nice Guy
- Most Wanted Bounty Winner
- Sold between 250 000 and 1 000 000 dollars
- Has been a member for 5-6 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Won a Competition
- Bought between 100 and 499 items
- Exclusive Author
- Referred between 200 and 499 users
RubenBristian
says
I just discovered a really big issue with the latest version of WordPress and the triggering of a thickbox in order to let users upload images..
This is what i’ve used:
tb_show('', 'media-upload.php?type=image&TB_iframe=1');
It started to throw errors disabling the media uploader.. Only today i figured out that i also need to send a post id in the call, like this:
tb_show('', 'media-upload.php?post_id=513&type=image&TB_iframe=1');
Does anyone else have issues with this? Or it is just something that i missed?
2481 posts
Nice Guy
- Most Wanted Bounty Winner
- Sold between 250 000 and 1 000 000 dollars
- Has been a member for 5-6 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Won a Competition
- Bought between 100 and 499 items
- Exclusive Author
- Referred between 200 and 499 users
RubenBristian
says
or better..
tb_show('', 'media-upload.php?post_id='+jQuery('#post_ID').attr('name')+'&type=image&TB_iframe=1'); 