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

WordPress Trac noreply at wordpress.org
Wed Nov 29 15:21:26 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:  4.9
 Keywords:  has-patch needs-testing 2nd-opinion  |  Resolution:
                                                 |     Focuses:
-------------------------------------------------+-------------------------

Comment (by nikolov.tmw):

 > I personally think checkboxes do not need to have custom values and they
 should only be true or false, since they are usually used for switching
 something, like switch to whether displaying tagline or not.

 Except for, there are situations where checkboxes need to save their
 custom values. For example, you can use checkboxes to select what filters
 will available in a search form - "categories", "tags", "months"(yes, not
 the best example, but should get the point across). Checkboxes are not
 only on or off.

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


More information about the wp-trac mailing list