Forums

WP-Syntax
SSL site support (3 posts)

  1. cpoetzsch
    Member
    Posted 10 months 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 7 months ago #

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

  3. strangerstudios
    Member
    Posted 5 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags