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.../includes/AJAX/Processe...
File: UpdateFields.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
final class NF_AJAX_Processes_UpdateFields extends WP_Background_Process
[2] Fix | Delete
{
[3] Fix | Delete
protected $action = 'nf_update_fields';
[4] Fix | Delete
[5] Fix | Delete
protected function task( $item )
[6] Fix | Delete
{
[7] Fix | Delete
if( ! isset( $item[ 'id' ] ) ) return false;
[8] Fix | Delete
if( ! isset( $item[ 'settings' ] ) ) return false;
[9] Fix | Delete
[10] Fix | Delete
$field = Ninja_Forms()->form()->get_field( $item[ 'id' ] );
[11] Fix | Delete
[12] Fix | Delete
$field->update_settings( $item[ 'settings' ] )->save();
[13] Fix | Delete
[14] Fix | Delete
return false;
[15] Fix | Delete
}
[16] Fix | Delete
}
[17] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function