WordPress.org

Ready to get started?Download WordPress

Forums

Enable Media Replace
Cancel link doesn't do anything. (5 posts)

  1. fwchapman
    Member
    Posted 3 years ago #

    Thanks for this really useful plugin -- it adds an essential feature to WordPress! I especially like being able to change the name of a file and automatically update all links to that file -- it's a great time-saver!

    I noticed a small problem. If I go into the Replace Media Upload screen and decide I don't want to replace the file after all, clicking on the Cancel link doesn't seem to do anything. Is it supposed to abort an upload in progress or is it supposed to exit and go back to the Media Library screen?

    Thanks again,

    Fred Chapman
    Bethlehem, Pennsylvania, USA

    http://wordpress.org/extend/plugins/enable-media-replace/

  2. Måns Jonasson
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks Fred!

    I think that the "Cancel"-link must have been broken some time ago. I'll think about remapping it next time I make changes.

    The link was just supposed to take you back to the page before, the media details screen.

  3. fwchapman
    Member
    Posted 3 years ago #

    You're very welcome! I'll look forward to your next update and post feedback after I try it out.

    Thanks for your speedy reply, too! I always appreciate it when developers actively maintain their plugins.

    Fred

  4. alx359
    Member
    Posted 3 years ago #

    Came here to report the same. The problem is that sometime ago it seems a modal window was opening to do the upload, and so there's a window.close() method to handle the closing. Now things are different.

    On enable-media-replace\popup.php ~li60:

    Instead of this:

    <a href="#" onclick="window.close();"><?php echo __("Cancel", "enable-media-replace"); ?></a>

    I changed with this to make it work:

    <a href="media.php?attachment_id=<?=$_GET["attachment_id"]?>&action=edit"><?php echo __("Cancel", "enable-media-replace"); ?></a>
  5. fwchapman
    Member
    Posted 2 years ago #

    Måns, I just tried Version 2.6 of the plugin. The cancel link actually closes my browser tab instead of taking me back to the previous page! The cancel link used to do nothing, so this is progress. :) -Fred

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic