maybe_ssl_url (for WordPress)
function maybe_ssl_url($url) | |
{ | |
if (!is_ssl()) { return $url; } | |
return str_ireplace('http://', 'https://', $url); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment