| @@ 64-68 (lines=5) @@ | ||
| 61 | $maxnum = FrmField::get_option( $this->field, 'maxnum' ); |
|
| 62 | if ( $frm_settings->use_html && $maxnum !== '' && $minnum !== '' ) { |
|
| 63 | $value = (float) $args['value']; |
|
| 64 | if ( $value < $minnum ) { |
|
| 65 | $errors[ 'field' . $args['id'] ] = __( 'Please select a higher number', 'formidable' ); |
|
| 66 | } elseif ( $value > $maxnum ) { |
|
| 67 | $errors[ 'field' . $args['id'] ] = __( 'Please select a lower number', 'formidable' ); |
|
| 68 | } |
|
| 69 | } |
|
| 70 | } |
|
| 71 | ||
| @@ 167-171 (lines=5) @@ | ||
| 164 | // What happens when the CAPTCHA was entered incorrectly |
|
| 165 | $invalid_message = FrmField::get_option( $this->field, 'invalid' ); |
|
| 166 | $errors[ 'field' . $args['id'] ] = ( $invalid_message == '' ? $frm_settings->re_msg : $invalid_message ); |
|
| 167 | } elseif ( is_wp_error( $resp ) ) { |
|
| 168 | $error_string = $resp->get_error_message(); |
|
| 169 | $errors[ 'field' . $args['id'] ] = __( 'There was a problem verifying your recaptcha', 'formidable' ); |
|
| 170 | $errors[ 'field' . $args['id'] ] .= ' ' . $error_string; |
|
| 171 | } |
|
| 172 | ||
| 173 | return $errors; |
|
| 174 | } |
|