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/clone/wp-conte.../plugins/ninja-fo.../assets/js/lib
File: sendwp.js
function ninja_forms_sendwp_remote_install() {
[0] Fix | Delete
var data = {
[1] Fix | Delete
'action': 'ninja_forms_sendwp_remote_install',
[2] Fix | Delete
'nonce': nfAdmin.sendwpInstallNonce
[3] Fix | Delete
};
[4] Fix | Delete
[5] Fix | Delete
// since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
[6] Fix | Delete
jQuery.post(ajaxurl, data, function(response) {
[7] Fix | Delete
var data = JSON.parse(response);
[8] Fix | Delete
ninja_forms_sendwp_register_client(data.register_url, data.client_name, data.client_secret, data.client_redirect, data.partner_id);
[9] Fix | Delete
});
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
function ninja_forms_sendwp_register_client(register_url, client_name, client_secret, client_redirect, partner_id) {
[13] Fix | Delete
[14] Fix | Delete
var form = document.createElement("form");
[15] Fix | Delete
form.setAttribute("method", 'POST');
[16] Fix | Delete
form.setAttribute("action", register_url);
[17] Fix | Delete
[18] Fix | Delete
function ninja_forms_sendwp_append_form_input(name, value) {
[19] Fix | Delete
var input = document.createElement("input");
[20] Fix | Delete
input.setAttribute("type", "hidden");
[21] Fix | Delete
input.setAttribute("name", name);
[22] Fix | Delete
input.setAttribute("value", value);
[23] Fix | Delete
form.appendChild(input);
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
ninja_forms_sendwp_append_form_input('client_name', client_name);
[27] Fix | Delete
ninja_forms_sendwp_append_form_input('client_secret', client_secret);
[28] Fix | Delete
ninja_forms_sendwp_append_form_input('client_redirect', client_redirect);
[29] Fix | Delete
ninja_forms_sendwp_append_form_input('partner_id', partner_id);
[30] Fix | Delete
[31] Fix | Delete
document.body.appendChild(form);
[32] Fix | Delete
form.submit();
[33] Fix | Delete
}
[34] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function