• Resolved Pete@wordpress

    (@petewordpress-1)


    Hello,
    I’m afraid there’s a problem with the media library page after updating Enable Media Replace 2.8 – the function enable_media_replace has been re-written, and needs a second parameter. Also, it will only return $form_fields if the $current_screen->base == ‘post’ AND $current_screen->post_type == ‘attachment’.

    This is easy enough to fix by changing line 65 of enable-media-replace.php to

    if ( $current_screen->base == ‘post’ || $current_screen->parent_base ==’upload’ ) { $on_media_edit_screen = true; }

    May I suggest re-writing your own equivalent ‘enable_media_replace’ function so that with other plugin future updates the code won’t break?

    http://ww.wp.xz.cn/extend/plugins/wp-retina-2x/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    That’s the best thing to do at this point, especially since I noticed that the retina files weren’t replaced with the new uploaded image!

    I will release a new version of the plugin in a few hours.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hello Pete, did you try the new version of the plugin? It should be much better now 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem when updating Enable Media Replace’ is closed to new replies.