mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +00:00
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:
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user