Title: Problem when updating Enable Media Replace
Last modified: August 20, 2016

---

# Problem when updating Enable Media Replace

 *  Resolved [Pete@wordpress](https://wordpress.org/support/users/petewordpress-1/)
 * (@petewordpress-1)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/problem-when-updating-enable-media-replace/)
 * 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://wordpress.org/extend/plugins/wp-retina-2x/](http://wordpress.org/extend/plugins/wp-retina-2x/)

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

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/problem-when-updating-enable-media-replace/#post-3291825)
 * 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](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/problem-when-updating-enable-media-replace/#post-3291833)
 * 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.

 * ![](https://ps.w.org/wp-retina-2x/assets/icon-256x256.png?rev=2597316)
 * [Perfect Images: Regenerate Thumbnails, Image Sizes, WebP & AVIF](https://wordpress.org/plugins/wp-retina-2x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-retina-2x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-retina-2x/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-retina-2x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-retina-2x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-retina-2x/reviews/)

## Tags

 * [media library](https://wordpress.org/support/topic-tag/media-library/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/problem-when-updating-enable-media-replace/#post-3291833)
 * Status: resolved