| @@ 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 | ||
| @@ 149-153 (lines=5) @@ | ||
| 146 | // What happens when the CAPTCHA was entered incorrectly |
|
| 147 | $invalid_message = FrmField::get_option( $this->field, 'invalid' ); |
|
| 148 | $errors[ 'field' . $args['id'] ] = ( $invalid_message == '' ? $frm_settings->re_msg : $invalid_message ); |
|
| 149 | } elseif ( is_wp_error( $resp ) ) { |
|
| 150 | $error_string = $resp->get_error_message(); |
|
| 151 | $errors[ 'field' . $args['id'] ] = __( 'There was a problem verifying your recaptcha', 'formidable' ); |
|
| 152 | $errors[ 'field' . $args['id'] ] .= ' ' . $error_string; |
|
| 153 | } |
|
| 154 | ||
| 155 | return $errors; |
|
| 156 | } |
|