WordPress.org

Ready to get started?Download WordPress

Forums

WP-Syntax
SSL site support (3 posts)

  1. cpoetzsch
    Member
    Posted 3 years ago #

    The current version doesn't support sites which uses SSL. WP_CONTENT_URL is usually initialized with the http protocol, cause get_option("siteurl") returns this. Replacing line 67 in wp-syntax.php with $css_url = site_url('wp-content/plugins/wp-syntax/wp-syntax.css'); fixes the problem on my side. Would be nice if it could be added to the next version.

    Chris

  2. SaltwaterC
    Member
    Posted 2 years ago #

    Would be nice to have this feature. Is this plug-in still maintained?

  3. strangerstudios
    Member
    Posted 2 years ago #

    Ditto that this would be useful. FWIW, I added this code before the echo at the end of that function (line 72):

    //HTTPS fix
    if(is_ssl())
    	$css_url = str_replace("http:", "https:", $css_url);

    Might be useful if people have their plugins folder somewhere else.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags