[wp-trac] [WordPress Trac] #23289: wp_protect_special_option rejects things it shouldn't
WordPress Trac
noreply at wordpress.org
Fri Jan 25 08:26:59 UTC 2013
#23289: wp_protect_special_option rejects things it shouldn't
--------------------------+------------------
Reporter: agarden | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.6
Component: General | Version: 2.2
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------
Comment (by TobiasBg):
PHP, this earns you another '''WTF'''?
Compare
{{{
var_dump( in_array( 0, array( '1', 'a2' ) ) ); // bool(true)
}}}
to
{{{
var_dump( in_array( 0, array( '1', '2a' ) ) ); // bool(false)
}}}
I'm a little bit speechless right now...
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23289#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list