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: hidden.php
<?php
[0] Fix | Delete
[1] Fix | Delete
add_action( 'wpcf7_init', 'wpcf7_add_form_tag_hidden', 10, 0 );
[2] Fix | Delete
[3] Fix | Delete
function wpcf7_add_form_tag_hidden() {
[4] Fix | Delete
wpcf7_add_form_tag( 'hidden',
[5] Fix | Delete
'wpcf7_hidden_form_tag_handler',
[6] Fix | Delete
array(
[7] Fix | Delete
'name-attr' => true,
[8] Fix | Delete
'display-hidden' => true,
[9] Fix | Delete
)
[10] Fix | Delete
);
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
function wpcf7_hidden_form_tag_handler( $tag ) {
[14] Fix | Delete
if ( empty( $tag->name ) ) {
[15] Fix | Delete
return '';
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
$atts = array();
[19] Fix | Delete
[20] Fix | Delete
$class = wpcf7_form_controls_class( $tag->type );
[21] Fix | Delete
$atts['class'] = $tag->get_class_option( $class );
[22] Fix | Delete
$atts['id'] = $tag->get_id_option();
[23] Fix | Delete
[24] Fix | Delete
$value = (string) reset( $tag->values );
[25] Fix | Delete
$value = $tag->get_default_option( $value );
[26] Fix | Delete
$atts['value'] = $value;
[27] Fix | Delete
[28] Fix | Delete
$atts['type'] = 'hidden';
[29] Fix | Delete
$atts['name'] = $tag->name;
[30] Fix | Delete
$atts = wpcf7_format_atts( $atts );
[31] Fix | Delete
[32] Fix | Delete
$html = sprintf( '<input %s />', $atts );
[33] Fix | Delete
return $html;
[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