WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Google Analytics for WordPress] Adding HTTPS support (2 posts)

  1. blackc2004
    Member
    Posted 6 years ago #

    HI. I am writing a plugin which will allow you to use wordpress on either http or https.

    I am using your plugin in my site and have found that it does not properly use the siteurl on lines 346 and 366. I have replaced your global $pluginpath with a function which is then called on these lines:

    function pluginPath() {
         $path = str_replace(str_replace('\\', '/', ABSPATH), get_settings('siteurl').'/', str_replace('\\', '/', dirname(__FILE__))).'/';
         return $path;
    }

    Could you please update the plugin so that these changes are persisted.

  2. Joost de Valk
    Member
    Posted 6 years ago #

    Should work with 2.5.5 :) if not, drop me an email!

Topic Closed

This topic has been closed to new replies.

About this Topic