Permalink
Browse files

fix problem con new media upload of WP 3.5

  • Loading branch information...
1 parent b8e0a48 commit 0b0add9189a63f81a32ba5bfea3de7f4f75103db @hunk hunk committed Dec 12, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 main.php
View
@@ -255,12 +255,17 @@ function mf_ajax_call(){
add_filter('attachment_fields_to_edit', 'charge_link_after_upload_image', 10, 2);
function charge_link_after_upload_image($fields){
+ if(
+ ( isset($_REQUEST['fetch']) && $_REQUEST['fetch'] ) ||
+ ( isset($_REQUEST['tab']) && $_REQUEST['tab'] == 'library' )
+ ){
printf("
<script type=\"text/javascript\">
//<![CDATA[
load_link_in_media_upload();
//]]>
</script>");
+ }
return $fields;
}

0 comments on commit 0b0add9

Please sign in to comment.