mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 04:34:31 +00:00
In wp.media.view.Settings::update(), when handling checkboxes, check for a value of 'false' in addition to casting value to boolean. !! 'false' evaluates to true.
Props adamsilverstein. Fixes #23954. git-svn-id: https://develop.svn.wordpress.org/trunk@28371 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -5714,7 +5714,7 @@
|
||||
}
|
||||
// Handle checkboxes.
|
||||
} else if ( $setting.is('input[type="checkbox"]') ) {
|
||||
$setting.prop( 'checked', !! value );
|
||||
$setting.prop( 'checked', !! value && 'false' !== value );
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user