Check for HTTPS for Profile/Banner Images
-
Hi there. Great plugin. I have a client using it and it looks great.
I noticed an issue in the recent tweets extension widget where the profile image from Twitter was an http:// URL when we needed https:// for our ecommerce system.
I added code like this to fix the URL:
if(is_ssl()) $profile_image_url = str_replace("http:", "https:", $profile_image_url);There are a few different ways to do this. You could even str_replace(‘http://’, ‘//’, $url) to make it scheme neutral.
Cheers.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Check for HTTPS for Profile/Banner Images’ is closed to new replies.