script not loading on pages over https
-
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.
The topic ‘script not loading on pages over https’ is closed to new replies.