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/wordpres.../includes/admin
File: wws-admin-sanitize-functions.php
<?php
[0] Fix | Delete
// Preventing to direct access
[1] Fix | Delete
defined( 'ABSPATH' ) OR die( 'Direct access not acceptable!' );
[2] Fix | Delete
[3] Fix | Delete
// Plugin custom sanitization
[4] Fix | Delete
function wws_sanitize_filter_by_schedule( $input ) {
[5] Fix | Delete
$sanitize_input = array();
[6] Fix | Delete
[7] Fix | Delete
if ( is_array( $input ) ) {
[8] Fix | Delete
foreach( $input as $i_key => $i ) {
[9] Fix | Delete
$sanitize_input[$i_key] = array(
[10] Fix | Delete
'status' => isset( $i['status'] ) ? 'yes' : 'no',
[11] Fix | Delete
'start' => sanitize_text_field( $i['start'] ),
[12] Fix | Delete
'end' => sanitize_text_field( $i['end'] ),
[13] Fix | Delete
);
[14] Fix | Delete
}
[15] Fix | Delete
} else {
[16] Fix | Delete
$sanitize_input = array(
[17] Fix | Delete
'mon' => array( 'status' => 'yes', 'start' => '00:00:00', 'end' => '23:59:59' ),
[18] Fix | Delete
'tue' => array( 'status' => 'yes', 'start' => '00:00:00', 'end' => '23:59:59' ),
[19] Fix | Delete
'wed' => array( 'status' => 'yes', 'start' => '00:00:00', 'end' => '23:59:59' ),
[20] Fix | Delete
'thu' => array( 'status' => 'yes', 'start' => '00:00:00', 'end' => '23:59:59' ),
[21] Fix | Delete
'fri' => array( 'status' => 'yes', 'start' => '00:00:00', 'end' => '23:59:59' ),
[22] Fix | Delete
'sat' => array( 'status' => 'yes', 'start' => '00:00:00', 'end' => '23:59:59' ),
[23] Fix | Delete
'sun' => array( 'status' => 'yes', 'start' => '00:00:00', 'end' => '23:59:59' )
[24] Fix | Delete
);
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
return $sanitize_input;
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
function wws_sanitize_absint( $input ) {
[31] Fix | Delete
return '0';
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function