making the codes case sensitive for the fun coupon form
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 18 Dec 2017 16:24:38 +0000 (11:24 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 18 Dec 2017 16:24:38 +0000 (11:24 -0500)
removing php that makes the code uppercase no matter what they put in the access code field

header.php
lib/gravityforms.php
style.css

index b5fdba3..4be3c0f 100644 (file)
@@ -5,7 +5,7 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title><?php wp_title(); ?></title>
     <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri() ; ?>/assets/favicon.ico">
-    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.0.20">
+    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.0.21">
      <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700" rel="stylesheet">
     <?php wp_head(); ?>
   </head>
index 46aa552..e54e285 100644 (file)
@@ -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;
index a4ac4d1..360c6d1 100644 (file)
--- 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
 */