Support » Plugin: Magic Fields » fix for image upload in wp 3.6

  • Resolved michapixel


    In RCCWP_WritePostPage.php

    ~ line 1763
    endif; (that’s from if(!is_wp30()): some lines earlier)

    else : ?>
    jQuery('a#thumb_<?php echo $idField ?>').click( function(){
     window.mf_field_id = jQuery(this).attr('id');
    <?php	endif;

    that should insert the required “mf_field_id” and you got your “Set image in field”-button back.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Great! Do you have any similiar idea for v2? Thx a lot.

    Should be similar i guess. I don’t use v2.

    It worked! Thank you much.

    I have version 1.6.1.

    For Mafic Fields 2, in magic-fields-2/field_types/image_media_field/image_media_field.php.

    $out .= sprintf(‘%s‘,$field[‘input_id’],$link,__(‘Set Image’,$mf_domain));

    $out .= “<script>
    jQuery(‘a#thumb_”.$field[‘input_id’].”‘).click( function(){
    window.mf_field_id = jQuery(this).attr(‘id’);

    It work for me. 🙂

    Plugin Author hunk


    fixed in new version MF, thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘fix for image upload in wp 3.6’ is closed to new replies.