[Plugin: Social Media Tabs] SSL-Aware CSS URLs
-
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:
Replacefunction 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__);
https://www.ads-software.com/extend/plugins/social-media-tabs/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Social Media Tabs] SSL-Aware CSS URLs’ is closed to new replies.