Found Email Validation Bug
-
Step 01
Go To “cf7-custom-validation.php”Step 02
Find “`if ( ’email’ == $tag->basetype ) {”Step 03
Add Following code
`if ( ’email’ == $tag->basetype ) {$value = isset( $_POST[$name] )
? trim( wp_unslash( strtr( (string) $_POST[$name], “\n”, ” ” ) ) )
: ”;
if ( $tag->is_required() && ” == $value ) {
$result->invalidate( $tag, wpcf7_get_message( $name ) );
if ( ” != $value && ! wpcf7_is_email( $value ) ) {
$result->invalidate( $tag, wpcf7_get_message( $name ) );
}
}}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Found Email Validation Bug’ is closed to new replies.