syamilmj / Aqua-Resizer

Resize WordPress images on the fly
502 stars 205 forks source link

Url scheme fix #28

Closed alsaydi closed 11 years ago

alsaydi commented 11 years ago

Hello,

Thanks for the script.

I noticed that if the upload url is http and the site is accessed through https, the url returned from aq_resize is empty string.

I added a couple of lines to make the schemes match. Please take a look.

AB

mxmzb commented 11 years ago

I don't see how this can work, $https_prefix is undefined. Also, would be nice to see this type of update live on some demo installation.

alsaydi commented 11 years ago

of course it won't work. sorry, I forgot to include the definition of the two variables.

Please take a look here https://syriareliefanddevelopment.org/ The underlying theme uses aq_resize.

syamilmj commented 11 years ago

Fantastic work mate, thanks! :)