Fix for reply to email
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 11 Dec 2015 18:36:46 +0000 (13:36 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 11 Dec 2015 18:36:46 +0000 (13:36 -0500)
Need to check this email also.

controllers/admin.php
glm-employment.php

index bbb5029..86eb043 100644 (file)
@@ -191,6 +191,14 @@ class staffords_employment_admin
                 'error'
             );
         }
+        if ( !$valid_reply_email = $this->validate_email_string($input['replyto_email']) ) {
+            add_settings_error(
+                STAFFORDS_EMP_SETTINGS,
+                'setting-error-notify-email',
+                'invalid email for Reply-To: Email',
+                'error'
+            );
+        }
         $terms = get_terms(
             STAFFORDS_EMP_TAX_DEPARTMENTS,
             array(
index b0b4912..26f0f81 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * Plugin Name: Staffords Employment
  * Description: Online Employment Application for Staffords
- * Version: 0.3.1
+ * Version: 0.3.2
  * Author: Steve Sutton
  * Author URI: http://www.gaslightmedia.com
  * License: All right reserved