• the function wp_get_attachment_url returns http instead of https if cloudflare https is enabled. This causes a mix-content warning in the browser for some of the assets (using for instance unyson plugin) to solve that you could add the following filter:

    add_filter(‘wp_get_attachment_url’, function($url) {
    return set_url_scheme($url, ‘https’);
    }, 999);

The topic ‘wp_get_attachment_url returns http not https’ is closed to new replies.