Skip to content

Commit 8b67411

Browse files
committed
Submit all widget control inputs outside of the .widget-content
1 parent 8a141db commit 8b67411

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

widget-customizer.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -701,14 +701,9 @@ var WidgetCustomizer = (function ($) {
701701
control.container.addClass( 'previewer-loading' );
702702
control.container.find( '.widget-content' ).prop( 'disabled', true );
703703

704-
var parsed_widget_id = parse_widget_id( control.params.widget_id );
705704
var params = {};
706705
params.action = self.update_widget_ajax_action;
707706
params[self.update_widget_nonce_post_key] = self.update_widget_nonce_value;
708-
params['widget-id'] = control.params.widget_id;
709-
params.id_base = parsed_widget_id.id_base;
710-
params.widget_number = parsed_widget_id.number || '';
711-
// @todo widget-width and widget-height?
712707

713708
var data = $.param( params );
714709

@@ -717,6 +712,7 @@ var WidgetCustomizer = (function ($) {
717712
} else {
718713
data += '&' + control.container.find( '.widget-content' ).find( ':input' ).serialize();
719714
}
715+
data += '&' + control.container.find( '.widget-content ~ :input' ).serialize();
720716

721717
var jqxhr = $.post( wp.ajax.settings.url, data, function (r) {
722718
if ( r.success ) {

0 commit comments

Comments
 (0)