This is standard code we use on two of our standard domains. They work fine. However, this code will not work on our website by which we just installed an SSL certificate. Wordpress states definitely not their problem.
We have not upgraded our WP website for four months during which to code worked. I cannot think that a SSL Certificate would mess up the transmission. What do you say?