BUG: SSL not happy with plugin's admin.css – fix below
-
function bp_group_documents_admin_cssjs() {
if (!empty($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’] != ‘off’) {
$strLocation=’https://’ . $_SERVER[‘SERVER_NAME’] . ‘/’;
wp_enqueue_style(‘bp-group-documents-admin’, $strLocation . ‘/wp-content/plugins/’ . BP_GROUP_DOCUMENTS_DIR . ‘/css/admin.css’);
} else {
wp_enqueue_style(‘bp-group-documents-admin’, WP_PLUGIN_URL . ‘/’ . BP_GROUP_DOCUMENTS_DIR . ‘/css/admin.css’);
}
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘BUG: SSL not happy with plugin's admin.css – fix below’ is closed to new replies.