[wp-trac] [WordPress Trac] #30238: Treat 'FALSE' as false in wp_validate_boolean()
WordPress Trac
noreply at wordpress.org
Mon Nov 3 13:09:10 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 | Keywords: has-patch
Focuses: |
-------------------------+-----------------------
In [28542] for #28170, we introduced `wp_validate_boolean()` to allow
converting the string `'false'` into a boolean `false`.
Let's also allow uppercase (`'FALSE'`) and mixed-case (`'False'`) versions
of the string, which could for example be coming from a Shortcode
parameter, like `[foo bar=FALSE /]`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30238>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list