Skip to content

Commit

Permalink
add return for attachment_fields_to_edit in Main.php
Browse files Browse the repository at this point in the history
  • Loading branch information
hunk committed Aug 24, 2010
1 parent 979a20d commit c4e32dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Main.php
Expand Up @@ -286,13 +286,14 @@ function mf_load_modules() {
/* load_link_media_upload in custom_fields/media_image.js */
add_filter('attachment_fields_to_edit', 'charge_link_after_upload_image', 10, 2);

function charge_link_after_upload_image(){
function charge_link_after_upload_image($fields){
printf("
<script type=\"text/javascript\">
//<![CDATA[
load_link_in_media_upload();
//]]>
</script>");
return $fields;
}

/* Function for manage page (write panels) */
Expand Down

2 comments on commit c4e32dc

@mikegoodstadt
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late reply - got lost in an unusual flood of emails this week
I will check it out - with this MF becomes a full possibility for my clients :-)
Many thanks and keep up the great work.
Mike

@laurenod
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This worked great, thank you!

Please sign in to comment.