jQuery UI style protocoll neutral enqueue
-
Hi there,
you enqueue jQuery UI style like this:
wp_enqueue_style('jquery-ui-style', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
That creates Mixed Content for all pages that use your plugin and run via HTTPS.
Could you please chance this to:
wp_enqueue_style('jquery-ui-style', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
So it will use whatever protocoll the site is using.
And yes, that is a valid way to define the protocoll – I first was like “you missed something there” too ??Would be awesome. As long as this is fixed I guess we will need to hack this in the plugin.
This is a minor update and should cause no trouble but a big benefit for sites via HTTPS <3
- The topic ‘jQuery UI style protocoll neutral enqueue’ is closed to new replies.