library/Comment/HoneyPot.php
public function honeyPotValidateFieldContent($data)
    {
        if (isset($_POST[$this->field_name.'_fi']) && isset($_POST[$this->field_name.'_bl'])) {
            if (empty($_POST[$this->field_name.'_bl']) && $_POST[$this->field_name.'_fi'] == $this->field_content) {
                return $data;
            }

            wp_die(__("Could not verify that you are human (some hidden form fields are manipulated).", 'municipio'));
        }

        wp_die(__("Could not verify that you are human (some form fields are missing).", 'municipio'));
    }
public function honeyPotValidateFieldContent($data)
    {
        if (isset($_POST[$this->field_name.'_fi']) && isset($_POST[$this->field_name.'_bl'])) {
            if (empty($_POST[$this->field_name.'_bl']) && $_POST[$this->field_name.'_fi'] == $this->field_content) {
                return $data;
            }

            wp_die(__("Could not verify that you are human (some hidden form fields are manipulated).", 'municipio'));
        }

        wp_die(__("Could not verify that you are human (some form fields are missing).", 'municipio'));
    }
public function honeyPotValidateFieldContent ( $ data ) { if ( isset ( $ _POST [ $ this -> field_name . '_fi' ] ) && isset ( $ _POST [ $ this -> field_name . '_bl' ] ) ) { if ( empty ( $ _POST [ $ this -> field_name . '_bl' ] ) && $ _POST [ $ this -> field_name . '_fi' ] == $ this -> field_content ) { return $ data ; } wp_die ( __ ( "Could not verify that you are human (some hidden form fields are manipulated)." , 'municipio' ) ) ; } wp_die ( __ ( "Could not verify that you are human (some form fields are missing)." , 'municipio' ) ) ; }
Validate honeypot fields before saving comment
@param  array $data The comment data
@return array       Comment data or die
Validate honeypot fields before saving comment