[wp-trac] [WordPress Trac] #41810: Add the sanitization function for checkboxes

WordPress Trac noreply at wordpress.org
Wed Sep 6 21:43:20 UTC 2017


#41810: Add the sanitization function for checkboxes
-------------------------------------------------+-------------------------
 Reporter:  Mirucon                              |       Owner:
     Type:  feature request                      |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Options, Meta APIs                   |  Review
 Severity:  normal                               |     Version:  trunk
 Keywords:  has-patch needs-testing 2nd-opinion  |  Resolution:
                                                 |     Focuses:
-------------------------------------------------+-------------------------

Comment (by knutsp):

 Checkboxes return string values when checked, and nothing when unchecked.
 The returned value is determined by the `value` attribute. When no value
 attribute is set, the default is the string 'on'.

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


More information about the wp-trac mailing list