Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/contact-.../includes/config-v...
File: actions.php
<?php
[0] Fix | Delete
[1] Fix | Delete
add_action(
[2] Fix | Delete
'wpcf7_update_option',
[3] Fix | Delete
'wpcf7_config_validator_update_option',
[4] Fix | Delete
10, 3
[5] Fix | Delete
);
[6] Fix | Delete
[7] Fix | Delete
/**
[8] Fix | Delete
* Runs bulk validation after the reCAPTCHA integration option is updated.
[9] Fix | Delete
*/
[10] Fix | Delete
function wpcf7_config_validator_update_option( $name, $value, $old_option ) {
[11] Fix | Delete
if ( 'recaptcha' === $name ) {
[12] Fix | Delete
$contact_forms = WPCF7_ContactForm::find();
[13] Fix | Delete
[14] Fix | Delete
$options = array(
[15] Fix | Delete
'include' => 'unsafe_email_without_protection',
[16] Fix | Delete
);
[17] Fix | Delete
[18] Fix | Delete
foreach ( $contact_forms as $contact_form ) {
[19] Fix | Delete
$config_validator = new WPCF7_ConfigValidator( $contact_form, $options );
[20] Fix | Delete
$config_validator->restore();
[21] Fix | Delete
$config_validator->validate();
[22] Fix | Delete
$config_validator->save();
[23] Fix | Delete
}
[24] Fix | Delete
}
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function