[wp-trac] [WordPress Trac] #41810: Add the sanitization function for checkboxes
WordPress Trac
noreply at wordpress.org
Wed Sep 6 08:46:43 UTC 2017
#41810: Add the sanitization function for checkboxes
-----------------------------+------------------------------
Reporter: Mirucon | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+------------------------------
Comment (by swissspidy):
> It should work, as checkboxes always return either true or false.
No. Checkboxes return whatever value you gave them. It can be anything.
See https://developer.mozilla.org/en-
US/docs/Web/HTML/Element/input/checkbox#Value for example.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41810#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list