[wp-trac] [WordPress Trac] #23289: wp_protect_special_option rejects things it shouldn't
WordPress Trac
noreply at wordpress.org
Fri Jan 25 08:54:46 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 commit |
------------------------------+------------------
Changes (by rmccue):
* keywords: has-patch => has-patch commit
Comment:
Replying to [comment:2 TobiasBg]:
> PHP, this earns you another '''WTF'''?
Makes full sense given that it's a non-strict comparison. When converting
strings to integers, it takes as many digits as possible before a non-
digit and turns that into an integer. In this case, `2a` becomes `2`, but
there are no digits at the start of `a2`, so that becomes `0`.
Patch looks good, +1.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23289#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list