WordPress.org

Ready to get started?Download WordPress

Forums

WP Coda Slider
[resolved] Using with HTTPS and SSL (2 posts)

  1. monkeystyping
    Member
    Posted 2 years ago #

    This plugin is not coded correctly for use with a HTTPS / SSL secure site. Uses an old convention or PHP variable to get to the plugins directory, and that old method only makes use of http: instead of https:

    The fix -- add this code to your "functions.php" file:


    remove_action ('init', 'c3m_coda_scripts');
    add_action ('init', 'c3m_coda_scripts_https_aware');

    function c3m_coda_scripts_https_aware() {
    wp_enqueue_script('coda_slider', plugins_url() . '/wp-coda-slider/js/coda.slider.js', array( 'jquery' ));
    wp_enqueue_style('coda_slider_css', plugins_url() . '/wp-coda-slider/css/coda-slider-2.0.1.css');
    wp_localize_script( 'coda_slider', 'Plugin_Url', array( 'plugin_url' => plugins_url() ) );
    }

    And that should fix it.

    http://wordpress.org/extend/plugins/wp-coda-slider/

  2. Chris Olbekson
    Level 12 Bug Squasher & Forum Moderator
    Plugin Author

    Posted 2 years ago #

    Thank you for the fix. This is included in the 0.3.4 update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic