diggdigg icon indicating copy to clipboard operation
diggdigg copied to clipboard

Support SSL when "Enable Email Button" is enabled

Open badcom opened this issue 9 years ago • 0 comments

Can you add an option to add SSL support to the ShareThis plugin when "Enable Email Button" is enabled?

The code I'm referring to is (found in "include/dd-helper.php"):

if(!empty($email_option))
    {
        wp_deregister_script('dd_sharethis_js');
        wp_register_script('dd_sharethis_js', 'http://w.sharethis.com/button/buttons.js');
        wp_enqueue_script('dd_sharethis_js','http://w.sharethis.com/button/buttons.js',array('sharethis'),'1.0.0',true);
    }

You would have to replace "http://w" with "https://ws" if a "SSL" checkbox is ticked for instance.

Thanks!

badcom avatar Jul 05 '16 22:07 badcom