Support » Plugin: jQuery Archive List Widget » script not loading on pages over https

  • Resolved bridgetwes



    Thank your for your plugin, it works very well on my development site. My live site, however, uses https and the jal.js file was not loading because it was not being included with https:// . I fixed the issue on my copy. WP_PLUGIN_URL does not automatically switch to https:// on https pages (it isn’t https aware). The plugins_url function does. I changed lines 76 and 481 to the following which fixes the issue and loads the scripts over https if the page loading the script is on https:// – otherwise, the script loads over http://
    wp_enqueue_script(‘jquery_archive_list’, plugins_url( self::JS_FILENAME, __FILE__ ), array(‘jquery’), false, true);

    With this change, you don’t need lines 48-50. I hope this is helpful.

Viewing 1 replies (of 1 total)
  • Plugin Author Miguel Useche


    Wow, thanks for this approach. It’s simpler than mine, i’ll add this change next saturady and update the plugin. So, don’t worry about it on next versions.

Viewing 1 replies (of 1 total)
  • The topic ‘script not loading on pages over https’ is closed to new replies.