WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Social Media Tabs] SSL-Aware CSS URLs

[Plugin: Social Media Tabs] SSL-Aware CSS URLs

  • John LeBlanc
    Member

    @johnleblanc

    Browsers throw mixed content warnings for sites using SSL. Here’s the fix:

    dcwp_plugin_admin.php:
    Replace all instances of
    WP_CONTENT_URL . "/plugins/"
    with
    plugins_url()

    dcwp_social_media_tabs.php:
    Replace

    function get_plugin_directory(){
    	return WP_PLUGIN_URL . '/social-media-tabs';
    }

    with

    function get_plugin_directory(){
    	return plugins_url() . '/social-media-tabs';
    }

    You could even be more flexible by using this to accomodate folks who rename the ‘social-media-tabs’ directory to something different:
    return plugins_url() . '/' . dirname(__FILE__);

    http://wordpress.org/extend/plugins/social-media-tabs/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author remix4
    Member

    @remix4

    Great. Thanks for the info

    @remix4 – Could this be included in a new version of the plugin?

    Also, can you confirm that the 2nd file to update is dcwp_slick_social_buttons.php? There’s no dcwp_social_media_tabs.php in v. 2.4.3.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Social Media Tabs] SSL-Aware CSS URLs’ is closed to new replies.