Updating the call to the google api
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 30 Nov 2017 15:18:27 +0000 (10:18 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 30 Nov 2017 15:18:27 +0000 (10:18 -0500)
Setup the jquery ui styles sheet so it is getting the correct style
version with the loaded jquery ui version.

controllers/admin.php

index ae6e782..0e12381 100644 (file)
@@ -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();