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.../res/js
File: wpml-user-language.js
/*globals wpml_user_language_data, jQuery*/
[0] Fix | Delete
jQuery( document ).ready(function() {
[1] Fix | Delete
"use strict";
[2] Fix | Delete
[3] Fix | Delete
var selector = jQuery( '#wpml-user-language-switcher-form').find('select' );
[4] Fix | Delete
selector.change(function() {
[5] Fix | Delete
var data;
[6] Fix | Delete
selector.prop( 'disabled', true );
[7] Fix | Delete
data = {
[8] Fix | Delete
'action': 'wpml_user_language_switcher_form_ajax',
[9] Fix | Delete
'mail': wpml_user_language_data.mail,
[10] Fix | Delete
'language': selector.val(),
[11] Fix | Delete
'nonce': wpml_user_language_data.nonce
[12] Fix | Delete
};
[13] Fix | Delete
[14] Fix | Delete
/** @namespace wpml_user_language_data.ajax_url */
[15] Fix | Delete
/**
[16] Fix | Delete
* @namespace wpml_user_language_data.auto_refresh_page
[17] Fix | Delete
* @type int
[18] Fix | Delete
* */
[19] Fix | Delete
jQuery.post(wpml_user_language_data.ajax_url, data, function() {
[20] Fix | Delete
selector.prop( 'disabled', false );
[21] Fix | Delete
selector.css( 'color', 'green' );
[22] Fix | Delete
if (1 === parseInt(wpml_user_language_data.auto_refresh_page)) {
[23] Fix | Delete
location.reload();
[24] Fix | Delete
}
[25] Fix | Delete
});
[26] Fix | Delete
[27] Fix | Delete
});
[28] Fix | Delete
[29] Fix | Delete
});
[30] Fix | Delete
[31] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function