WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. bridgetwes
    Member
    Posted 10 months 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 10 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.