Skip to content

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

@badcom

Description

@badcom

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions