title: Loading Google font in HTTPS, content being blocked
body: <p>There is a wordpress theme that automatically pulls the option font picked and requests it from google font. when ssl was needed for a few selected pages the font became <code>missing</code></p>
  
  <p>Viewing the console log:</p>
  
  <blockquote>
    <p>[blocked] The page at '<a href="https://www.example.com/" rel="noreferrer">https://www.example.com/</a>' was loaded over HTTPS, but ran insecure content from '<a href="http://fonts.googleapis.com/css?family=Alegreya+Sans:300,400,500,700,800" rel="noreferrer">http://fonts.googleapis.com/css?family=Alegreya+Sans:300,400,500,700,800</a>': this content should also be loaded over HTTPS.</p>
  </blockquote>
  
  <p>would going into the code and make all requests in https from google font work? Is there some workaround to this?</p>
  
  <p>found the source code... but seems like it is already doing this... could there be a error in the if logic?</p>
  
  <pre><code>$prefix = "http";
              if(isset($_SERVER['HTTPS']) &amp;&amp; $_SERVER['HTTPS'] == 'on') $prefix = "https";
  
              if($get_google_font){
  
              if(!in_array($rule_split[0], $this-&gt;used_fonts))
              {
                  $this-&gt;extra_output .= "\n&lt;!-- google webfont font replacement --&gt;\n";
                  $this-&gt;extra_output .= '&lt;link id="google_webfont_'.$this-&gt;webfont_count.'" rel="stylesheet" type="text/css" href="'.$prefix.'s://fonts.googleapis.com/css?family='.str_replace(' ','+',$rule_split[0]).$font_weight.'" /&gt;';
              }
  </code></pre>