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: listo.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
** Retrieve list data from the Listo plugin.
[2] Fix | Delete
** Listo http://wordpress.org/plugins/listo/
[3] Fix | Delete
**/
[4] Fix | Delete
[5] Fix | Delete
add_filter( 'wpcf7_form_tag_data_option', 'wpcf7_listo', 10, 3 );
[6] Fix | Delete
[7] Fix | Delete
function wpcf7_listo( $data, $options, $args ) {
[8] Fix | Delete
if ( ! function_exists( 'listo' ) ) {
[9] Fix | Delete
return $data;
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
$args = wp_parse_args( $args, array() );
[13] Fix | Delete
[14] Fix | Delete
if ( $contact_form = wpcf7_get_current_contact_form() ) {
[15] Fix | Delete
$args['locale'] = $contact_form->locale();
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
foreach ( (array) $options as $option ) {
[19] Fix | Delete
$option = explode( '.', $option );
[20] Fix | Delete
$type = $option[0];
[21] Fix | Delete
[22] Fix | Delete
if ( isset( $option[1] ) ) {
[23] Fix | Delete
$args['group'] = $option[1];
[24] Fix | Delete
} else {
[25] Fix | Delete
unset( $args['group'] );
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
if ( $list = listo( $type, $args ) ) {
[29] Fix | Delete
$data = array_merge( (array) $data, $list );
[30] Fix | Delete
}
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
return $data;
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function