Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/ninja-fo.../deprecat.../includes/display/processi...
File: honeypot.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Make sure that our honeypot wasn't filled in.
[3] Fix | Delete
*/
[4] Fix | Delete
function nf_check_honeypot() {
[5] Fix | Delete
global $ninja_forms_processing;
[6] Fix | Delete
[7] Fix | Delete
$hp_name = $ninja_forms_processing->get_extra_value( '_hp_name' );
[8] Fix | Delete
[9] Fix | Delete
if ( $ninja_forms_processing->get_extra_value( $hp_name ) != '' ) {
[10] Fix | Delete
$ninja_forms_processing->add_error( 'honeypot', '' );
[11] Fix | Delete
}
[12] Fix | Delete
}
[13] Fix | Delete
[14] Fix | Delete
add_action( 'ninja_forms_pre_process', 'nf_check_honeypot', 8 );
[15] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function