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/plugins
File: wpml-plugins-check.php
<?php
[0] Fix | Delete
[1] Fix | Delete
class WPML_Plugins_Check {
[2] Fix | Delete
/**
[3] Fix | Delete
* @param string $bundle_json
[4] Fix | Delete
* @param string $tm_version
[5] Fix | Delete
* @param string $st_version
[6] Fix | Delete
* @param string $wcml_version
[7] Fix | Delete
*/
[8] Fix | Delete
public static function disable_outdated(
[9] Fix | Delete
$bundle_json,
[10] Fix | Delete
$tm_version,
[11] Fix | Delete
$st_version,
[12] Fix | Delete
$wcml_version
[13] Fix | Delete
) {
[14] Fix | Delete
$required_versions = json_decode( $bundle_json, true );
[15] Fix | Delete
[16] Fix | Delete
if ( version_compare( $tm_version, $required_versions['wpml-translation-management'], '<' ) ) {
[17] Fix | Delete
remove_action( 'wpml_loaded', 'wpml_tm_load', 10 );
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
if ( version_compare( $st_version, $required_versions['wpml-string-translation'], '<' ) ) {
[21] Fix | Delete
remove_action( 'wpml_before_init', 'load_wpml_st_basics' );
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
if ( version_compare( $wcml_version, $required_versions['woocommerce-multilingual'], '<' ) ) {
[25] Fix | Delete
global $woocommerce_wpml;
[26] Fix | Delete
[27] Fix | Delete
if ( $woocommerce_wpml ) {
[28] Fix | Delete
remove_action( 'wpml_loaded', [ $woocommerce_wpml, 'load' ] );
[29] Fix | Delete
remove_action( 'init', [ $woocommerce_wpml, 'init' ], 2 );
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
remove_action( 'wpml_loaded', 'wcml_loader' );
[33] Fix | Delete
}
[34] Fix | Delete
}
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function