From: Steve Sutton Date: Thu, 30 Nov 2017 15:18:27 +0000 (-0500) Subject: Updating the call to the google api X-Git-Tag: v2.10.23^2~23^2~14 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=c472dc95f33de0ffc05e65b42ff0a1de98742654;p=WP-Plugins%2Fglm-member-db.git 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. --- 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();