WordPress.org

Ready to get started?Download WordPress

Forums

Social Media Tabs
SSL-Aware CSS URLs (3 posts)

  1. John LeBlanc
    Member
    Posted 2 years ago #

    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/

  2. remix4
    Member
    Plugin Author

    Posted 2 years ago #

    Great. Thanks for the info

  3. ecabral
    Member
    Posted 2 years ago #

    @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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic