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

WordPress Trac noreply at wordpress.org
Wed Sep 6 19:42:41 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 needs-testing  |     Focuses:
-------------------------------------+------------------------------
Changes (by danieltj):

 * keywords:  has-patch => has-patch needs-testing


Comment:

 Whilst writing the above patch it occurred to me that we could fix two
 issues in one here. Checkbox and radios behave in the exact same way
 (apart from only one radio can be selected) so I've implemented a method
 that includes radios as well. Should return the sanitized value as is now
 using said function.

 Thanks for the heads up on that one @swissspidy!

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


More information about the wp-trac mailing list