Permalink
Browse files

https for css

  • Loading branch information...
smith
smith committed Aug 19, 2011
1 parent 23cc1c3 commit 1970a274cd878a507eba2acb18a5dba15986fdea
Showing with 1 addition and 2 deletions.
  1. +1 −2 acms-branding.php
View
@@ -10,8 +10,7 @@
function acms_branding_admin_head() {
$plugin_name = 'acms_branding';
- // FIXME: This doesn't get server over HTTPS
- $location = WP_CONTENT_URL . '/plugins/acms-branding/logo.png';
+ $location = ( ( empty( $_SERVER['HTTPS'] ) ) ? WP_CONTENT_URL : str_replace( 'http://', 'https://', WP_CONTENT_URL ) ) . '/plugins/acms-branding/logo.png';
?>
<style type="text/css">
#header-logo {

0 comments on commit 1970a27

Please sign in to comment.