Changeset 2361504
- Timestamp:
- 08/14/2020 10:27:45 PM (6 years ago)
- Location:
- foreup-forms/trunk
- Files:
-
- 7 edited
-
README.txt (modified) (2 diffs)
-
assets/js/frontend.js (modified) (1 diff)
-
assets/src/frontend/App.vue (modified) (1 diff)
-
includes/class-frontend.php (modified) (1 diff)
-
package-lock.json (modified) (1 diff)
-
package.json (modified) (1 diff)
-
plugin.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
foreup-forms/trunk/README.txt
r2361471 r2361504 5 5 Requires at least: 5.1 6 6 Tested up to: 5.2 7 Stable tag: 1.2. 17 Stable tag: 1.2.2 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later … … 60 60 = 1.2.1 = 61 61 *updated error handling and required defaults for creating customers 62 63 = 1.2.2 = 64 *add experimental features option -
foreup-forms/trunk/assets/js/frontend.js
r2361471 r2361504 776 776 birthdateReq: options.birthdateReq, 777 777 header: options.header, 778 recaptchaKey: options.recaptchaKey 778 recaptchaKey: options.recaptchaKey, 779 experimental: options.experimental 779 780 }, 780 781 errors: [], -
foreup-forms/trunk/assets/src/frontend/App.vue
r2361471 r2361504 191 191 birthdateReq: options.birthdateReq, 192 192 header: options.header, 193 recaptchaKey: options.recaptchaKey 193 recaptchaKey: options.recaptchaKey, 194 experimental: options.experimental, 194 195 }, 195 196 errors: [], -
foreup-forms/trunk/includes/class-frontend.php
r2057784 r2361504 46 46 'header' => get_option('formup_header'), 47 47 'recaptchaKey' => get_option('formup_recaptcha_key'), 48 'experimental' => get_option('formup_experimental'), 48 49 ); 49 50 wp_localize_script('formup-frontend', 'options', $scriptData); -
foreup-forms/trunk/package-lock.json
r2361471 r2361504 1 1 { 2 2 "name": "foreup-forms", 3 "version": "1.2. 1",3 "version": "1.2.2", 4 4 "lockfileVersion": 1, 5 5 "requires": true, -
foreup-forms/trunk/package.json
r2361471 r2361504 1 1 { 2 2 "name": "foreup-forms", 3 "version": "1.2. 1",3 "version": "1.2.2", 4 4 "description": "Forms that integrate with foreUP Golf Software", 5 5 "author": "Nathan Johnson <nathan@foreup.com>", -
foreup-forms/trunk/plugin.php
r2361471 r2361504 4 4 Plugin URI: https://foreup.com/ 5 5 Description: Forms that integrate with foreUP Golf Software 6 Version: 1.2. 16 Version: 1.2.2 7 7 Author: foreUP Software 8 8 Author URI: https://freakingjohnson.github.io/portfolio/ … … 57 57 * @var string 58 58 */ 59 public $version = '1.2. 1';59 public $version = '1.2.2'; 60 60 61 61 /** … … 266 266 <td> 267 267 <input type="checkbox" name="formup_account_prefix" value="1" <?php checked(1, get_option('formup_account_prefix'), true);?> /> 268 </td> 269 </tr> 270 </table> 271 <table> 272 <p>Enable experimental features <strong>WARNING: don't use unless you accept the consequences.</strong></p> 273 <tr valign="top"> 274 <th scope="row"><label for="formup_experimental">Use Account Number Prefix "ON"</label></th> 275 <td> 276 <input type="checkbox" name="formup_experimental" value="1" <?php checked(1, get_option('formup_experimental'), true);?> /> 268 277 </td> 269 278 </tr> … … 993 1002 \"country\": \"United States\", 994 1003 \"handicap_account_number\": \"\", 995 \"handicap_score\": \" \",1004 \"handicap_score\": \"0\", 996 1005 \"comments\": \"\" 997 1006 } … … 1026 1035 \"country\": \"United States\", 1027 1036 \"handicap_account_number\": \"\", 1028 \"handicap_score\": \" \",1037 \"handicap_score\": \"0\", 1029 1038 \"comments\": \"\" 1030 1039 } … … 1041 1050 ); 1042 1051 1043 $response = wp_remote_post("https://www.foreupsoftware.com/api_rest/index.php/courses/$courseid/customers", $args); 1052 if(get_option('formup_experimental')){ 1053 $response = wp_remote_post("https://dev.foreupsoftware.com/api_rest/index.php/courses/$courseid/customers", $args); 1054 }else { 1055 $response = wp_remote_post("https://www.foreupsoftware.com/api_rest/index.php/courses/$courseid/customers", $args); 1056 } 1044 1057 1045 1058 $body = wp_remote_retrieve_body($response); … … 1199 1212 ); 1200 1213 1201 $response = wp_remote_request("https://www.foreupsoftware.com/api_rest/index.php/courses/$courseid/customers/$customerid", $args); 1214 if(get_option('formup_experimental')){ 1215 $response = wp_remote_request("https://dev.foreupsoftware.com/api_rest/index.php/courses/$courseid/customers/$customerid", $args); 1216 }else { 1217 $response = wp_remote_request("https://www.foreupsoftware.com/api_rest/index.php/courses/$courseid/customers/$customerid", $args); 1218 } 1202 1219 1203 1220 $body = wp_remote_retrieve_body($response);
Note: See TracChangeset
for help on using the changeset viewer.