Widgets: Allow deletion even when widget form fails validity checks.
Props felipeelia. Amends [41352]. See #23120. Fixes #42127. Built from https://develop.svn.wordpress.org/trunk@41813 git-svn-id: http://core.svn.wordpress.org/trunk@41647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b36fa8ce9c
commit
7cb66a5353
|
@ -515,7 +515,7 @@ wpWidgets = {
|
|||
sidebarId = widget.closest( 'div.widgets-sortables' ).attr( 'id' ),
|
||||
form = widget.find( 'form' );
|
||||
|
||||
if ( form.prop( 'checkValidity' ) && ! form[0].checkValidity() ) {
|
||||
if ( ! del && form.prop( 'checkValidity' ) && ! form[0].checkValidity() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9-beta1-41812';
|
||||
$wp_version = '4.9-beta1-41813';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue