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/ajax
File: Locale.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace WPML\Ajax;
[2] Fix | Delete
[3] Fix | Delete
class Locale implements \IWPML_AJAX_Action, \IWPML_DIC_Action {
[4] Fix | Delete
[5] Fix | Delete
/** @var \SitePress */
[6] Fix | Delete
private $sitePress;
[7] Fix | Delete
[8] Fix | Delete
public function __construct( \SitePress $sitePress ) {
[9] Fix | Delete
$this->sitePress = $sitePress;
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
public function add_hooks() {
[13] Fix | Delete
if ( is_admin() && ! $this->sitePress->check_if_admin_action_from_referer() ) {
[14] Fix | Delete
add_filter( 'determine_locale', [ $this->sitePress, 'locale_filter' ], 10, 1 );
[15] Fix | Delete
}
[16] Fix | Delete
}
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function