Archived

This topic is now archived and is closed to further replies.

  • 0

linkedin share button and https


Question

Posted · Report post

Hi,

My website is in ssl and I use the provided code on the forum to force pagelines in ssl:
 

//force pagelines ssl
add_action( 'pl_force_ssl', '__return_true' );
add_filter( 'pless_vars', 'make_ssl_vars' );
function make_ssl_vars( $vars ) {
$vars['plSectionsRoot'] = str_replace( 'http://', 'https://', $vars['plSectionsRoot'] );
$vars['plRoot'] = str_replace( 'http://', 'https://', $vars['plRoot'] );
return $vars;
}

 

 

I the Chrome console I get this message: [blocked] The page at https://www.pepperbase.com/2013/ict-media/mobile-care ran insecure content from http://platform.linkedin.com/in.js. I am not sure how the pl_force_ssl action works, should it filter this http link to https?

In the Sharebar section I can see the link to the Linkedin JS file is http, maybe this could be changed to a protocal relative link (http://blog.httpwatch.com/2010/02/10/using-protocol-relative-urls-to-switch-between-http-and-https/)?

 

I already changed it in the core files, so you will not see the error anymore. 


Thanks.
 

Share this post


Link to post
Share on other sites

1 answer to this question

Posted · Report post

Hi there,

 

That SSL filter will convert all the links inside the pagelines generated css to https. If it's worked on the twitter button it should have worked on the linkedin button as well. I will pass the link you've provided on the relevant people to review, thank you.

 

If you've edited in the core files remember when you update the framework the changes will be written over.

Share this post


Link to post
Share on other sites