|
@@ -144,11 +144,11 @@ |
|
|
block discarded – undo |
|
144
|
144
|
if ( isset( $response['success'] ) && ! $response['success'] ) { |
|
145
|
145
|
// What happens when the CAPTCHA was entered incorrectly |
|
146
|
146
|
$invalid_message = FrmField::get_option( $this->field, 'invalid' ); |
|
147
|
|
- $errors[ 'field' . $args['id'] ] = ( $invalid_message == '' ? $frm_settings->re_msg : $invalid_message ); |
|
|
147
|
+ $errors['field' . $args['id']] = ( $invalid_message == '' ? $frm_settings->re_msg : $invalid_message ); |
|
148
|
148
|
} elseif ( is_wp_error( $resp ) ) { |
|
149
|
149
|
$error_string = $resp->get_error_message(); |
|
150
|
|
- $errors[ 'field' . $args['id'] ] = __( 'There was a problem verifying your recaptcha', 'formidable' ); |
|
151
|
|
- $errors[ 'field' . $args['id'] ] .= ' ' . $error_string; |
|
|
150
|
+ $errors['field' . $args['id']] = __( 'There was a problem verifying your recaptcha', 'formidable' ); |
|
|
151
|
+ $errors['field' . $args['id']] .= ' ' . $error_string; |
|
152
|
152
|
} |
|
153
|
153
|
|
|
154
|
154
|
return $errors; |
Please login to merge, or discard this patch.