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.../public_h.../clone/wp-conte.../plugins/themify-.../themify/plugin-c...
File: wpml.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Themify Compatibility Code
[2] Fix | Delete
*
[3] Fix | Delete
* @package Themify
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* WPML
[8] Fix | Delete
* @link https://wpml.org/
[9] Fix | Delete
*/
[10] Fix | Delete
class Themify_Compat_wpml {
[11] Fix | Delete
[12] Fix | Delete
static function init() {
[13] Fix | Delete
if ( class_exists( 'SitePress',false ) ) {
[14] Fix | Delete
add_action( 'themify_search_fields', [ __CLASS__, 'themify_search_fields' ] );
[15] Fix | Delete
}
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
/**
[19] Fix | Delete
* Add current language to the search form, fix Ajax search with WPML
[20] Fix | Delete
*/
[21] Fix | Delete
public static function themify_search_fields() {
[22] Fix | Delete
global $sitepress;
[23] Fix | Delete
$current_language = $sitepress->get_current_language();
[24] Fix | Delete
echo '<input type="hidden" name="lang" value="' . esc_attr( $current_language ) . '" />';
[25] Fix | Delete
}
[26] Fix | Delete
}
[27] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function