Commit 7fb0abd0 authored by KR Moorhouse's avatar KR Moorhouse

Updated batch process calls to use new, standardized, nonce.

parent d1711f94
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
......@@ -301,7 +301,7 @@ define( [], function() {
chunk: chunks[ currentChunk ],
form_id: formId
},
security: nfAdmin.ajaxNonce
security: nfAdmin.batchNonce
};
var that = this;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
File mode changed from 100644 to 100755
File mode changed from 100755 to 100644
......@@ -324,7 +324,7 @@ define( [ 'views/sections/widgets.js', 'views/sections/services.js', 'views/sect
var data = {
action: 'nf_batch_process',
batch_type: 'data_cleanup',
security: nfAdmin.ajaxNonce
security: nfAdmin.batchNonce
};
jQuery.post( ajaxurl, data, function( response ) {
response = JSON.parse( response );
......
......@@ -141,6 +141,7 @@ final class NF_Admin_Menus_Forms extends NF_Abstracts_Menu
wp_localize_script( 'nf-dashboard', 'nfPromotions', array_values( Ninja_Forms::config( 'DashboardPromotions' ) ) );
wp_localize_script( 'nf-dashboard', 'nfAdmin', array(
'ajaxNonce' => wp_create_nonce( 'ninja_forms_dashboard_nonce' ),
'batchNonce' => wp_create_nonce( 'ninja_forms_batch_nonce' ),
'formTelemetry' => ( get_option( 'nf_form_tel_sent' ) ) ? 0 : 1,
'showOptin' => ( get_option( 'ninja_forms_do_not_allow_tracking' ) ||
get_option( 'ninja_forms_allow_tracking' ) ) ? 0 : 1,
......@@ -244,6 +245,7 @@ final class NF_Admin_Menus_Forms extends NF_Abstracts_Menu
wp_localize_script( 'nf-builder', 'nfAdmin', array(
'ajaxNonce' => wp_create_nonce( 'ninja_forms_builder_nonce' ),
'batchNonce' => wp_create_nonce( 'ninja_forms_batch_nonce' ),
'requireBaseUrl' => Ninja_Forms::$url . 'assets/js/',
'previewurl' => home_url() . '/?nf_preview_form=',
'wp_locale' => $wp_locale->number_format,
......
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