jQuery-UI and https error
-
I’ve come across a small error in the Mad Mimi plugin that I wanted to bring to the developer’s attention.
If your site is hosted on a secure server (https://www.mydomain.com) the Mad Mimi plugin returns an error about mixed content, because it tries to call the jQuery-UI plugin from https://code.jquery.com/ui/1.11.4/jquery-ui.js
I would recommend that the dev go to line 142 of madmimiofficial.php which is this:
wp_enqueue_script('jquery-ui', 'https://code.jquery.com/ui/1.11.4/jquery-ui.js', array('jquery'), '1.11.4');
and change it to:
wp_enqueue_script('jquery-ui', '//code.jquery.com/ui/1.11.4/jquery-ui.js', array('jquery'), '1.11.4');
If you drop the “http:” from the call, it will use the protocol that the site is currently on. I’ve made this change on my copy on a site I’ve developed, and it seems to work just fine, and resolves the mixed content error.
Hope this helps.
- The topic ‘jQuery-UI and https error’ is closed to new replies.