It is definitely loaded via HTTPS on my end.
Okay. I found the problem.
It seems like WP_PLUGIN_URL uses the “siteurl” option and in my database the url is set to http:// instead of https://
I don’t like to change that option, so it would be nice with a fix..
Maybe plugins_url() could replace WP_PLUGIN_URL?
If you switch it out with plugins_url, does it work as expected?
Yes, works.
wp_enqueue_script( ‘theme-my-login-admin’, plugins_url( ‘theme-my-login/admin/js/theme-my-login-admin.js’ ), array( ‘jquery’ ), Theme_My_Login::version, true );
Ah, my test site is in the DB as https, hence why it worked for me with the constant. This will be done correctly in the next release.
TML 6.3.12 was just released resolving this issue.
Thanks, works perfectly. 🙂