Setup the jquery ui styles sheet so it is getting the correct style
version with the loaded jquery ui version.
// 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();