[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 21:30:18 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             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by westonruter):

 * keywords:   => reporter-feedback


Comment:

 @gandham Please provide a standalone plugin with code that demonstrates
 the issue you're having.

 From your screenshot, I see you have “flase” (a mispelling). In PHP, if
 you try to use `flase` you'll get:

 > Notice: Use of undefined constant flase - assumed 'flase'

 In other words, it converts `flase` into a string `'flase'` and this would
 then be interpreted as boolean `true`, and result in the checkbox being
 checked.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40025#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list