Completed
Push — master ( d3b61e...900f2b )
by Stephanie
02:58
created
classes/models/fields/FrmFieldCaptcha.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 			// If captcha is missing, check if it was already verified
145 145
 			if ( ! isset( $_POST['recaptcha_checked'] ) || ! wp_verify_nonce( $_POST['recaptcha_checked'], 'frm_ajax' ) ) {
146 146
 				// There was no captcha submitted
147
-				$errors[ 'field' . $args['id'] ] = __( 'The captcha is missing from this form', 'formidable' );
147
+				$errors['field' . $args['id']] = __( 'The captcha is missing from this form', 'formidable' );
148 148
 			}
149 149
 			return $errors;
150 150
 		}
@@ -157,11 +157,11 @@  discard block
 block discarded – undo
157 157
 		if ( isset( $response['success'] ) && ! $response['success'] ) {
158 158
 			// What happens when the CAPTCHA was entered incorrectly
159 159
 			$invalid_message = FrmField::get_option( $this->field, 'invalid' );
160
-			$errors[ 'field' . $args['id'] ] = ( $invalid_message == '' ? $frm_settings->re_msg : $invalid_message );
160
+			$errors['field' . $args['id']] = ( $invalid_message == '' ? $frm_settings->re_msg : $invalid_message );
161 161
 		} elseif ( is_wp_error( $resp ) ) {
162 162
 			$error_string = $resp->get_error_message();
163
-			$errors[ 'field' . $args['id'] ] = __( 'There was a problem verifying your recaptcha', 'formidable' );
164
-			$errors[ 'field' . $args['id'] ] .= ' ' . $error_string;
163
+			$errors['field' . $args['id']] = __( 'There was a problem verifying your recaptcha', 'formidable' );
164
+			$errors['field' . $args['id']] .= ' ' . $error_string;
165 165
 		}
166 166
 
167 167
 		return $errors;
Please login to merge, or discard this patch.