WordPress.org

Ready to get started?Download WordPress

Forums

Resize images before upload
[resolved] Suggested small fix (4 posts)

  1. linuxplayground
    Member
    Posted 1 year ago #

    Hi,

    I have been having some trouble getting this to work as described in IE8. In other words, have the user be warned about the lack of flash and then roll on without resizing.

    This might be a theme issue but I figured out that the following redirect:

    location.href = location.href + "&you_toldmeabout_flash=donttellmeagain"

    could be changed to:
    location.href = "<?php echo add_query_arg('you_toldmeabout_flash','donttellmeagain');?>";

    Otherwise the visitor ends up being redirected to a 404 not found error when they try to add an image from the Media -> Add New page.

    It seems that the Media->Add New page does not have any arguments so the URL Arguments (_GET) should be prepended with a "?" mark in this instance. I just thought it would be more, WordPressy to use a wp function here.

    http://wordpress.org/extend/plugins/resize-images-before-upload/

  2. WPsites
    Member
    Plugin Author

    Posted 1 year ago #

    OK thanks for bringing this up I will look into it.

  3. WPsites
    Member
    Plugin Author

    Posted 1 year ago #

    I've just implemented this in 0.8, thanks.

  4. WPsites
    Member
    Plugin Author

    Posted 1 year ago #

    There is another annoyance with this issue and the new media manager. Because there is a media upload form on the main dashboard page you'll get the Flash failure message every time you look at the dashboard.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic