From 2f9fd63585358e420e829738a39ca5a4344fc6ae Mon Sep 17 00:00:00 2001 From: Novemburr Date: Mon, 13 Jan 2020 09:33:35 -0600 Subject: [PATCH] Made jquery include more url friendly. Changed "http://code.jquery.com" to "//code.jquery.com" so ssled back ends media libraries wont break(probably other things too but that was the issue a client was having.) --- wp_jquery_timelinr.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp_jquery_timelinr.php b/wp_jquery_timelinr.php index dcfe002..e738ad7 100644 --- a/wp_jquery_timelinr.php +++ b/wp_jquery_timelinr.php @@ -263,8 +263,8 @@ function save_timelinr_date(){ // Datepicker Jquery UI add_action( 'admin_init', 'broobe_date_picker' ); function broobe_date_picker() { - wp_enqueue_script( 'jquery-datepicker', 'http://code.jquery.com/ui/1.10.1/jquery-ui.js', array('jquery', 'jquery-ui-core' ) ); - wp_enqueue_style( 'style-datepicker', 'http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css'); + wp_enqueue_script( 'jquery-datepicker', '//code.jquery.com/ui/1.10.1/jquery-ui.js', array('jquery', 'jquery-ui-core' ) ); + wp_enqueue_style( 'style-datepicker', '//code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css'); wp_enqueue_script( 'custom.timelinr', JQTL_BASE_URL . '/assets/js/custom.js', array( 'jquery-datepicker' )); wp_localize_script( 'custom.timelinr', 'obj', array( 'image_url' => JQTL_BASE_URL . "/assets/images/") ); @@ -412,4 +412,4 @@ public function shortcode($atts, $content = NULL) { global $jqueryTimelinrLoad; $jqueryTimelinrLoad = new jqueryTimelinrLoad(); } -?> \ No newline at end of file +?>