HTTPS bug on load jquery
-
Hi,
There is an error on your code when you loading the Jquery. On line 102, when you are including the jquery library by and HTTP URL, using google apis. The fact is, the blogs over HTTPS returns some javascript errors, and it’s just because the browser block the Jquery resource.
I tried to commit the change with the proper way to load the jquery library, but I don’t have permissionsThat’s the initial error:
[blocked] The page at 'https://www.example.com/' was loaded over HTTPS, but ran insecure content from 'https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js?ver=1.10.1': this content should also be loaded over HTTPS.
That’s the fix:
wp_register_script('jquery', ("//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"), false, '1.10.1', false);
- The topic ‘HTTPS bug on load jquery’ is closed to new replies.