This plugin doesn't use HTTPS?
-
I’m running almost 20 plugins on my website. This is the only one which has any issue running over SSL. The images are referenced using HTTP:// no matter what. It turns the green padlock in the browser into a broken one. That’s no good since our website also has a store.
Note that I’m using a custom field named “blog-image” for the plugin, not featured images. “Resize image from Custom field?” is set to Yes.
It looks like this was supposed to be fixed 4 years ago: https://wordpress.org/support/topic/plugin-wordpress-popular-posts-wppcss-loaded-over-http-on-https-pages?replies=2
I was able to fix this using a filter in functions.php, but I think this should be built-in.
Here’s my workaround:
// Make WordPress Popular Posts use HTTPS for images function wpp_use_https_images( $url ) { if ( $_SERVER['HTTPS'] == 'on' ) { $url = str_ireplace( "http://", "https://", $url ); } return $url; } add_filter( 'wpp_render_image', 'wpp_use_https_images' );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘This plugin doesn't use HTTPS?’ is closed to new replies.