SSL Loading of jquery-ui
-
Hi,
It looks as though jquery-ui is being incorrectly enqueued in the includes/scripts.php file.
Currently on line 31, it’s is being enqueued as follows…
wp_enqueue_style( ‘jquery-style’, ‘https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css’ );
This is ok, until SSL is enabled on the site. In particular, I’ve noticed a mixed content message appearing on the order details page in the admin due to this.
Would it be better to include with a conditional to check for SSL?
wp_enqueue_style( ‘jquery-style’, (is_ssl()) ? ‘https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css’ : ‘https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css’ );
I’ve updated this, but will it be something that is incorporated into future releases? That’s if what I’ve stated here is correct :D.
Thanks for your help.
Matt
https://www.ads-software.com/plugins/gift-cards-for-woocommerce/
- The topic ‘SSL Loading of jquery-ui’ is closed to new replies.