diff --git a/src/wp-admin/js/widgets.js b/src/wp-admin/js/widgets.js index 9268d0cbe2..bbd287d984 100644 --- a/src/wp-admin/js/widgets.js +++ b/src/wp-admin/js/widgets.js @@ -517,9 +517,10 @@ wpWidgets = { save : function( widget, del, animate, order ) { var self = this, data, a, sidebarId = widget.closest( 'div.widgets-sortables' ).attr( 'id' ), - form = widget.find( 'form' ); + form = widget.find( 'form' ), + isAdd = widget.find( 'input.add_new' ).val(); - if ( ! del && form.prop( 'checkValidity' ) && ! form[0].checkValidity() ) { + if ( ! del && ! isAdd && form.prop( 'checkValidity' ) && ! form[0].checkValidity() ) { return; }