Widget Customizer: Simplify nonces.

see #27534.

git-svn-id: https://develop.svn.wordpress.org/trunk@27819 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90)
2014-03-28 15:34:17 +00:00
parent 891e6183ee
commit 814b798b0d
2 changed files with 7 additions and 13 deletions
+3 -5
View File
@@ -9,9 +9,7 @@ var WidgetCustomizer = ( function ($) {
SidebarCollection,
OldPreviewer,
customize = wp.customize, self = {
update_widget_ajax_action: null,
update_widget_nonce_value: null,
update_widget_nonce_post_key: null,
nonce: null,
i18n: {
save_btn_label: '',
save_btn_tooltip: '',
@@ -1201,9 +1199,9 @@ var WidgetCustomizer = ( function ($) {
processing( processing() + 1 );
params = {};
params.action = self.update_widget_ajax_action;
params.action = 'update-widget';
params.wp_customize = 'on';
params[self.update_widget_nonce_post_key] = self.update_widget_nonce_value;
params.nonce = self.nonce;
data = $.param( params );
inputs = widget_content.find( ':input, option' );