• ResolvedPlugin Contributor netzgestaltung

    (@netzgestaltung)


    Hi there,

    in the opposite of the last time where no validation is possible, this time it always validates.

    I again looked at the code on lines from last time (class-cf7-grid-layout-public.php, 1139-1149)

            default:
              /** @since 2.11.0 recaptcha fix constributed by @netzgestaltung */
              if ( $type !== 'captchar' ) { // really simple captcha gets called twice otherwise - and does not validate
                if(!isset($data[$tag['name']])) continue 2; /*likely toggled and unused*/
                $result= apply_filters( "wpcf7_validate_{$type}", $result, $tag );
                /** @since 3.1.3 */
                $validation[$tag['name']] = $this->strip_cf7_validation($result, $tag['name']);
                $validated[$tag['name']] = $tag;
                $submission[$tag['name']] = $this->get_submitted_data($tag['name'], $type, $data[$tag['name']]);
    	        }
              break;

    There are 3 New lines (@since 3.1.3).

    this time i didnt figured out a solution, i made it only to not validate at all or validate always. So your help would be apprechiate.

Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Really Simple Captcha does always validate’ is closed to new replies.