[wp-trac] [WordPress Trac] #18026: stripslashes_deep() casts booleans to strings (was: Change value type in wp_capabilities or any custom user field)
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 7 16:25:41 UTC 2011
#18026: stripslashes_deep() casts booleans to strings
--------------------------+------------------------------
Reporter: DemoIgor | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by scribu):
Confirmed:
{{{
var_dump( stripslashes_deep( array( 'foo' => true, 'bar' => false ) ) );
// Result: array(2) { ["foo"]=> string(1) "1" ["bar"]=> string(0) "" }
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18026#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list