From: Anthony Talarico Date: Mon, 18 Dec 2017 16:24:38 +0000 (-0500) Subject: making the codes case sensitive for the fun coupon form X-Git-Tag: v1.0.21^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=1746a5888131f8310d983ce89db6d01218d229e5;p=WP-Themes%2Fmackinawferry.git making the codes case sensitive for the fun coupon form removing php that makes the code uppercase no matter what they put in the access code field --- diff --git a/header.php b/header.php index b5fdba3..4be3c0f 100644 --- a/header.php +++ b/header.php @@ -5,7 +5,7 @@ <?php wp_title(); ?> - + diff --git a/lib/gravityforms.php b/lib/gravityforms.php index 46aa552..e54e285 100644 --- a/lib/gravityforms.php +++ b/lib/gravityforms.php @@ -6,7 +6,7 @@ function validate_code( $validation_result ) { $codes = array('18BEL', '18GRR','18DET'); // We want uppercase code values - if ( ! in_array(strtoupper( rgpost( 'input_5' ) ), $codes) ) { + if ( ! in_array(rgpost( 'input_5' ) , $codes) ) { // set the form validation to false $validation_result['is_valid'] = false; diff --git a/style.css b/style.css index a4ac4d1..360c6d1 100644 --- a/style.css +++ b/style.css @@ -3,5 +3,5 @@ Theme Name: StarLine Author: Gaslight Media Author URI: http://www.gaslightmedia.com Description: A theme for Star Line -Version: 1.0.20 +Version: 1.0.21 */