Making WordPress.org


Ignore:
Timestamp:
04/30/2015 03:45:00 PM (10 years ago)
Author:
kovshenin
Message:

WordCamp.org: Add support for HTTPS in the WordCamp Fonts plugin.

Fixes #1008
Props andywashere

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-fonts/wc-fonts.php

    r931 r1522  
    3333            return;
    3434           
    35         printf( '<script type="text/javascript" src="http://use.typekit.com/%s.js"></script>' . "\n", $this->options['typekit-id'] );
     35        printf( '<script type="text/javascript" src="//use.typekit.com/%s.js"></script>' . "\n", $this->options['typekit-id'] );
    3636        printf( '<script type="text/javascript">try{Typekit.load();}catch(e){}</script>' );
    3737    }
     
    134134                    continue;
    135135
    136                 $url = $url['scheme'] . '://' . $url['host'] . $url['path'] . '?' . $url['query'];
     136                $url = '//' . $url['host'] . $url['path'] . '?' . $url['query'];
    137137                $import = "@import url('" . esc_url_raw( $url ) . "');";
    138138                $fonts[] = $import;
Note: See TracChangeset for help on using the changeset viewer.