Magic-Fields icon indicating copy to clipboard operation
Magic-Fields copied to clipboard

File URL hidden

Open bigfuzz opened this issue 16 years ago • 3 comments

When adding images through the normal Wordpress media upload interface, the file URL is hidden. Even after the media is added, clicking 'edit' does not show the file URL either.

Magic Fields 1.4.5 Wordpress 3.01

bigfuzz avatar Aug 23 '10 19:08 bigfuzz

error occurs on line that applies the filters in the function of get_attachment_fields_to_edit: $form_fields = apply_filters('attachment_fields_to_edit', $form_fields, $post);

once I commented this out in the wp-admin/includes/media.php file it works fine again. My guess is magic fields has an older filter being added which is messing with the media

merganser avatar Sep 15 '10 15:09 merganser

On Main.php, Line 296, You'll need to make the following changes

BEFORE: function charge_link_after_upload_image( ){ printf(" <script type="text/javascript"> // "); }

AFTER:

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

nukecpower avatar Nov 24 '10 08:11 nukecpower

I'm cleaning the issues if you still have this problem reopen the issue. thanks

hunk avatar Aug 27 '16 19:08 hunk