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/Controll...
File: DispatchPoints.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
class NF_AJAX_Controllers_DispatchPoints
[2] Fix | Delete
{
[3] Fix | Delete
/*
[4] Fix | Delete
* Constructor method
[5] Fix | Delete
*/
[6] Fix | Delete
public function __construct()
[7] Fix | Delete
{
[8] Fix | Delete
// Add our ajax end points. Calls are handled in this file.
[9] Fix | Delete
add_action( 'wp_ajax_nf_undo_click', array( $this, 'undo_click' ) );
[10] Fix | Delete
add_action( 'wp_ajax_nf_form_telemetry', array( $this, 'form_telemetry' ) );
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
/*
[14] Fix | Delete
* Function called when the undo manager is used in the builder.
[15] Fix | Delete
*
[16] Fix | Delete
* @since 3.2
[17] Fix | Delete
*/
[18] Fix | Delete
public function undo_click() {
[19] Fix | Delete
// Make sure we have a valid nonce.
[20] Fix | Delete
check_ajax_referer( 'ninja_forms_builder_nonce', 'security' );
[21] Fix | Delete
// Send the action to our dispatcher.
[22] Fix | Delete
Ninja_Forms()->dispatcher()->send( 'undo_click' );
[23] Fix | Delete
// Exit.
[24] Fix | Delete
die( 1 );
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
/*
[28] Fix | Delete
* Function to startup our form data telemtry.
[29] Fix | Delete
*
[30] Fix | Delete
* @since 3.2
[31] Fix | Delete
*/
[32] Fix | Delete
public function form_telemetry() {
[33] Fix | Delete
// Make sure we have a valid nonce.
[34] Fix | Delete
check_ajax_referer( 'ninja_forms_dashboard_nonce', 'security' );
[35] Fix | Delete
// Send the action to our dispatcher.
[36] Fix | Delete
Ninja_Forms()->dispatcher()->form_data();
[37] Fix | Delete
// Exit.
[38] Fix | Delete
die( 1 );
[39] Fix | Delete
}
[40] Fix | Delete
}
[41] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function