Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support SSL when "Enable Email Button" is enabled #63

Open
badcom opened this issue Jul 5, 2016 · 0 comments
Open

Support SSL when "Enable Email Button" is enabled #63

badcom opened this issue Jul 5, 2016 · 0 comments

Comments

@badcom
Copy link

badcom commented Jul 5, 2016

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant