Support » Plugin: JQuery Accordion Menu Widget » Problem with JavaScript on SSL pages

  • Peter Anderson

    (@peterfeatherstone)


    Hi there,

    First of all thanks for the plugin, its great!

    I just have one query. The JS files included on the site don’t seem to account for SSL pages, so it would load them as “http://” rather than “https://” resources, which causes JavaScript to not load properly and cause insecure content issues on site.

    I have corrected this by changing:

    function get_plugin_directory(){
          return WP_PLUGIN_URL . '/jquery-vertical-accordion-menu';
    }

    to:

    function get_plugin_directory(){
          return plugins_url() . '/jquery-vertical-accordion-menu';
    }

    Please see the bug here:
    https://core.trac.wordpress.org/ticket/13941

    Could this be changed for future versions as when I update the plugin this will obviously be overwritten?

    Again, many thanks for the plug-in, its much appreciated!

    Thanks

    Peter

    https://wordpress.org/plugins/jquery-vertical-accordion-menu/

  • The topic ‘Problem with JavaScript on SSL pages’ is closed to new replies.