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?
The topic ‘Problem when updating Enable Media Replace’ is closed to new replies.