[wp-trac] [WordPress Trac] #30238: Treat 'FALSE' as false in wp_validate_boolean()

WordPress Trac noreply at wordpress.org
Mon Nov 3 14:20:38 UTC 2014


#30238: Treat 'FALSE' as false in wp_validate_boolean()
-------------------------+------------------
 Reporter:  TobiasBg     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.1
Component:  General      |     Version:  4.0
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------

Comment (by TobiasBg):

 Nice catch, kitchin! Thanks!

 [attachment:30238.2.diff] is a new patch with an `is_string()` check. I'd
 stick with the `===` check though, as it's cleaner and shows that we know
 that we are dealing with strings at this point.

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


More information about the wp-trac mailing list