From c472dc95f33de0ffc05e65b42ff0a1de98742654 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 30 Nov 2017 10:18:27 -0500 Subject: [PATCH] Updating the call to the google api Setup the jquery ui styles sheet so it is getting the correct style version with the loaded jquery ui version. --- controllers/admin.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/controllers/admin.php b/controllers/admin.php index ae6e782e..0e123812 100644 --- a/controllers/admin.php +++ b/controllers/admin.php @@ -395,7 +395,14 @@ class glmMembersAdmin extends GlmPluginSupport // Jquery DatePicker wp_enqueue_script('jquery-ui-datepicker'); - wp_enqueue_style('jquery-style', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css'); + $wp_scripts = wp_scripts(); + wp_enqueue_style( + 'jquery-style', + sprintf( + '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css', + $wp_scripts->registered['jquery-ui-core']->ver + ) + ); wp_enqueue_media(); -- 2.17.1