mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +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:
parent
e8b8e881b2
commit
8dc4b88fcf
@ -5714,7 +5714,7 @@
|
||||
}
|
||||
// Handle checkboxes.
|
||||
} else if ( $setting.is('input[type="checkbox"]') ) {
|
||||
$setting.prop( 'checked', !! value );
|
||||
$setting.prop( 'checked', !! value && 'false' !== value );
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user