Make enqueu ssl
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 23 Mar 2017 12:58:38 +0000 (08:58 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 23 Mar 2017 12:58:38 +0000 (08:58 -0400)
use // for http or https

controllers/admin.php
models/admin/pages/shortcode.php

index aaede59..31aa438 100644 (file)
@@ -398,7 +398,7 @@ class glmMembersAdmin extends GlmPluginSupport
 
         // Jquery DatePicker
         wp_enqueue_script('jquery-ui-datepicker');
-        wp_enqueue_style('jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css');
+        wp_enqueue_style('jquery-style', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css');
 
 
         wp_enqueue_media();
index 3b79e12..3d4dd01 100644 (file)
@@ -121,7 +121,7 @@ class GlmMembersAdmin_pages_shortcode
 
         // load shortcodeBuilder.js when the shortcode function has been fired if it hasn't been enqueued yet
         if( ! wp_script_is( 'jquery-ui-dialog', 'enqueued' ) ){
-            wp_enqueue_style('jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css');
+            wp_enqueue_style('jquery-style', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css');
             wp_enqueue_script('jquery-ui-dialog', false, array('jquery'), false, true);
         }
 
@@ -187,7 +187,7 @@ class GlmMembersAdmin_pages_shortcode
             FROM " . GLM_MEMBERS_PLUGIN_DB_PREFIX . "amenity_groups
         ORDER BY name";
         $amenGroups = $this->wpdb->get_results( $amenGroupSql, ARRAY_A );
-        
+
         // regions.
         $regionSql = "
           SELECT id,name