pinterest-for-woocommerce
pinterest-for-woocommerce copied to clipboard
Fix feed location check and force HTTPS over HTTP.
Changes proposed in this Pull Request:
- Replacing
get_site_urlwithwp_get_upload_dirfor the feed location check. - Forcing HTTPS over HTTP for the feed location URI.
Additional details:
Changelog entry
Fix - Feed location URL matching.
If a site doesn't use HTTPS, what will happen? Would it make sense to check is_ssl() to determine whether to force http or https? If the site doesn't have a valid certificate, would unconditionally forcing https still work?
Also is this a draft still?
Hey, @layoutd !
I believe that for any e-commerce store SSL is a must. Most payment gateways require it, etc. To my understanding is_ssl won't give you any information if the website has SSL configured, it will tell you if the current page is served by HTTPS or not. I would always force HTTP to HTTPS.