WordPress.org

Support

Support » Plugins and Hacks » [Resolved] external links in theme (*.googleapis.com) not changed to https

[Resolved] external links in theme (*.googleapis.com) not changed to https

  • My theme has several http external links to google APIs for fonts etc.

    if ( $et_body_font <> '' ) {
    			$font_style .= "<link id='" . $et_body_font_id . "' href='http://fonts.googleapis.com/css?family=" . $et_body_font . "' rel='stylesheet' type='text/css' />";
    			$font_family = "font-family: '" . str_replace( '+', ' ', $et_body_font ) . "', Arial, sans-serif !important; ";
    		}

    WordPress HTTPS is not changing these links, even with ‘Bypass external checks’ disabled, but these API links work fine on https.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mike Ems

    @mvied

    Hey Vezado,

    This is being caused by the Regex used to match URL’s in the code. I will have this fixed in the next version.

    Thanks,
    Mvied

    Thanks Mvied! This will reduce the amount of modification needed.

    Your plugin is very useful and I appreciate you work. Thank you very much.

    Plugin Author Mike Ems

    @mvied

    This fix is out in version 1.9. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] external links in theme (*.googleapis.com) not changed to https’ is closed to new replies.