WordPress.org

Forums

jQuery Archive List Widget
[resolved] script not loading on pages over https (2 posts)

  1. bridgetwes
    Member
    Posted 1 year ago #

    Hi,

    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.

    http://wordpress.org/plugins/jquery-archive-list-widget/

  2. Miguel Useche
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • jQuery Archive List Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.