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/sitepres.../classes/utilitie...
File: class-wpml-string-functions.php
<?php
[0] Fix | Delete
[1] Fix | Delete
class WPML_String_Functions {
[2] Fix | Delete
[3] Fix | Delete
public static function is_css_color( $string ) {
[4] Fix | Delete
return (bool) preg_match( '/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/im', $string );
[5] Fix | Delete
}
[6] Fix | Delete
[7] Fix | Delete
public static function is_css_length( $string ) {
[8] Fix | Delete
$parts = explode( ' ', $string );
[9] Fix | Delete
foreach ( $parts as $part ) {
[10] Fix | Delete
if ( ! (bool) preg_match( '/^[+-]?[0-9]+.?([0-9]+)?(px|em|ex|ch|rem|vw|vh|vmin|vmax|%|in|cm|mm|pt|pc)$/im', $part ) &&
[11] Fix | Delete
'0' !== $part ) {
[12] Fix | Delete
return false;
[13] Fix | Delete
}
[14] Fix | Delete
}
[15] Fix | Delete
[16] Fix | Delete
return true;
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
public static function is_numeric( $string ) {
[20] Fix | Delete
return (bool) is_numeric( $string );
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
public static function is_not_translatable( $string ) {
[24] Fix | Delete
return self::is_css_color( $string ) ||
[25] Fix | Delete
self::is_css_length( $string ) ||
[26] Fix | Delete
self::is_numeric( $string );
[27] Fix | Delete
}
[28] Fix | Delete
}
[29] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function