Mixed content when I enable SSL
-
The plugin creates Mixed Content browser content errors when loaded using SSL.
This is because the code in os-integration.php creates absolute URL references in the link HTML tags; e.g.:
<link rel=”icon” type=”image/png” href=”<?php echo osintegration_getOption( ‘img_square_196’, $options ); ?>” sizes=”196×196″>
Ideally WordPress would provide a function like “wp_enqueue_icon” to do this, but AFAIK it doesn’t.
I would suggest that you need a wrapper function (like “osintegration_getUrl($option, $options = null)” ) which tests whether the returned string starts with https://yourdomain.com or https://yourdomain.com and if it does it replaces the protocol with the one used for the current web page.
- The topic ‘Mixed content when I enable SSL’ is closed to new replies.