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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wpforms-.../includes/fields
File: class-number-slider.php
*/
[500] Fix | Delete
private function sanitize_value( $value ) {
[501] Fix | Delete
[502] Fix | Delete
// Some browsers allow other non-digit/decimal characters to be submitted
[503] Fix | Delete
// with the num input, which then trips the is_numeric validation below.
[504] Fix | Delete
// To get around this we remove all chars that are not expected.
[505] Fix | Delete
$signed_value = preg_replace( '/[^-0-9.]/', '', $value );
[506] Fix | Delete
[507] Fix | Delete
// If there's no number on the signed value we return zero.
[508] Fix | Delete
// We have to do that because since PHP 8.0, the abs() function is allowed an argument with int|float type.
[509] Fix | Delete
if ( ! is_numeric( $signed_value ) ) {
[510] Fix | Delete
return 0;
[511] Fix | Delete
}
[512] Fix | Delete
[513] Fix | Delete
$abs_value = abs( $signed_value );
[514] Fix | Delete
$value = strpos( $signed_value, '-' ) === 0 ? '-' . $abs_value : $abs_value;
[515] Fix | Delete
[516] Fix | Delete
return $value;
[517] Fix | Delete
}
[518] Fix | Delete
}
[519] Fix | Delete
[520] Fix | Delete
new WPForms_Field_Number_Slider();
[521] Fix | Delete
[522] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function