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/wp-conte.../plugins/contact-.../modules
File: doi-helper.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Double Opt-In Helper module
[2] Fix | Delete
*
[3] Fix | Delete
* @link https://contactform7.com/doi-helper/
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
[7] Fix | Delete
add_action( 'wpcf7_doi', 'wpcf7_doihelper_start_session', 10, 3 );
[8] Fix | Delete
[9] Fix | Delete
/**
[10] Fix | Delete
* Starts a double opt-in session.
[11] Fix | Delete
*/
[12] Fix | Delete
function wpcf7_doihelper_start_session( $agent_name, $args, &$token ) {
[13] Fix | Delete
if ( isset( $token ) ) {
[14] Fix | Delete
return;
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
if ( ! function_exists( 'doihelper_start_session' ) ) {
[18] Fix | Delete
return;
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
$submission = WPCF7_Submission::get_instance();
[22] Fix | Delete
[23] Fix | Delete
if ( ! $submission ) {
[24] Fix | Delete
return;
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
$contact_form = $submission->get_contact_form();
[28] Fix | Delete
[29] Fix | Delete
$do_doi = apply_filters( 'wpcf7_do_doi',
[30] Fix | Delete
! $contact_form->is_false( 'doi' ),
[31] Fix | Delete
$agent_name,
[32] Fix | Delete
$args
[33] Fix | Delete
);
[34] Fix | Delete
[35] Fix | Delete
if ( ! $do_doi ) {
[36] Fix | Delete
return;
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
$token = doihelper_start_session( $agent_name, $args );
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function