[wp-trac] [WordPress Trac] #40025: Customer checkbox control is checked when the default value is false.
WordPress Trac
noreply at wordpress.org
Fri Mar 3 17:11:25 UTC 2017
#40025: Customer checkbox control is checked when the default value is false.
--------------------------+-----------------------------
Reporter: gandham | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
If we set the default value of the setting as boolean false, not "false",
checkbox on the customiser is checked.
If I set the default value to 0, it is working as expected.
Should a boolean false be treated as false?
Customiser saves the false value as 0 and true value as 1, when actually
saving to the db.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40025>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list