Forums

[Plugin: SidePosts Widget] Sidepost and calling the stylesheet via https (3 posts)

  1. mogmismo
    Member
    Posted 3 years ago #

    The stylesheet is called via http:// even if the sidepost widget is embedded in an https page, causing the entire site to have the browser "Mixed http/https content" issue and users to loose confidence with the system.

    I've hardcoded in currently:

    /*
    OLD STYLE CALL
    wp_register_style($this->ID, $url, false, $this->p_data['Version']);
    */
    // NEW STYLE CALL
    wp_register_style($this->ID, '/blog/wp-content/plugins/sideposts/style.css?ver=2.0.3', false, $this->p
    _data['Version']);

    temporarily, but I know this will get broken net time the plugin updates. Can you put a check for http/https here in the code?

    Thanks for your great work on this plugin.

    M.

    http://wordpress.org/extend/plugins/sideposts/

  2. mogmismo
    Member
    Posted 2 years ago #

    I've upgraded the plugin to see if https is fixed, but alas not. Code for the new plugin version had to be changed again, but different this time:

    if ( file_exists($this->p_dirs['path'] . 'style.css') ) {
                                            //$url = $this->p_dirs['url'] . 'style.css';
                                            $url =  '/wp-content/plugins/sideposts/style.css?ver=2.1.4';
                                    }

    Any chance of having final function _enqueueStyles() be smart about if http/https is used?

    Thanks,

    -Mog

  3. mogmismo
    Member
    Posted 2 years ago #

    Hmmm... Had to apply the same fix on 2.4 as w/ 2.1.4.

    Any ideas? Other plugins handle switching between http and https Ok.

    Thanks,

    -Mog

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.