Change dns-prefetch to preconnect with correct protocol
The problem is not that the function you’re using adds http:, the problem is it adds no URL schema at all! As a result, WP needs to add a URL schema to turn the host into a URL, and so it uses http://. It has no way of knowing what the original was, or if … Read more