Commit 8dc2b4a2 authored by KR Moorhouse's avatar KR Moorhouse

Made what should be the final changes to clean things up.

parent a6913474
......@@ -203,7 +203,7 @@ final class NF_Dispatcher
/**
* Email address of the current user.
*/
$email = $data[ 'user_email' ];
$email = isset( $data[ 'user_email' ] ) ? $data[ 'user_email' ] : '';
$site_data = array(
'url' => site_url(),
......
......@@ -28,7 +28,7 @@ final class NF_Tracking
{
// Temporary: Report previously opted-in users that were not already reported. @todo Remove after a couple of versions.
add_action( 'admin_init', array( $this, 'report_optin' ) );
// add_action( 'admin_init', array( $this, 'report_optin' ) );
add_action( 'wp_ajax_nf_optin', array( $this, 'maybe_opt_in' ) );
add_filter( 'ninja_forms_check_setting_allow_tracking', array( $this, 'check_setting' ) );
......@@ -56,7 +56,6 @@ final class NF_Tracking
}
}
die( 1 );
// header( 'Location: ' . admin_url( 'admin.php?page=ninja-forms' ) );
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment