From 5d918320f7de0e409eb06eb3f674201bb0d4dbba Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 28 Aug 2019 14:45:01 -0400 Subject: [PATCH] Fix cron task for https sites Some https sites may not validate ssl. Adding argument for cron ajax call to not verify SSL. --- index.php | 2 +- views/ui/f6/form-start.html | 73 ++++++++++++++++++++++++++++--------- 2 files changed, 57 insertions(+), 18 deletions(-) diff --git a/index.php b/index.php index 6a991ed4..a900dc3c 100755 --- a/index.php +++ b/index.php @@ -925,7 +925,7 @@ function do_glm_associate_cron() { } // Do AJAX call to glmCron.php - wp_remote_get(admin_url().'admin-ajax.php?action=glm_members_admin_ajax&glm_action=glmCron'); + $response = wp_remote_get( admin_url() . 'admin-ajax.php?action=glm_members_admin_ajax&glm_action=glmCron', array( 'sslverify' => false ) ); } diff --git a/views/ui/f6/form-start.html b/views/ui/f6/form-start.html index 89b2559a..8318aefe 100644 --- a/views/ui/f6/form-start.html +++ b/views/ui/f6/form-start.html @@ -2,20 +2,21 @@ Foundation 6 UI - Form Start WARNING: There may be a problem with using Form Start after Grid Start. Was seeing improper spacing. - - Found that using ".position().top -10" was better since it places the top of the window 10px above the + + Found that using ".position().top -10" was better since it places the top of the window 10px above the box containing the validate message while using ".offset()" caused it to position in the middle of the validate message. {$ui = [ - 'action' => string Required URL - 'method' => string Required Method "post" or "get" - 'id' => string Form id - 'file' => boolean If including file upload set to true - 'validate' => boolean If true, include Abide Form Validation - 'validateFocusMsg' => boolean If true focuses on validateMessage on error - 'validateID' => string Unique text that will be added to the validate message container to ensure that it is unique - 'validateMessage' => string Message to show for a validation error, Defaults to "There are some errors in your form." + 'action' => string Required URL + 'method' => string Required Method "post" or "get" + 'id' => string Form id + 'file' => boolean If including file upload set to true + 'validate' => boolean If true, include Abide Form Validation + 'validateFocusMsg' => boolean If true focuses on validateMessage on error - May be a problem if there's more than one validated form (may have to ID these messages separately) + 'validateID' => string Unique text that will be added to the validate message container to ensure that it is unique + 'validateMessage' => string Message to show for a validation error, Defaults to "There are some errors in your form." + 'leaveModifiedFormCheck' => boolean If set and user tries to leave the page after modifying form input it will warn them and ask if they want to abandon their changes. ]} *}