[wp-trac] [WordPress Trac] #23289: wp_protect_special_option rejects things it shouldn't

WordPress Trac noreply at wordpress.org
Fri Jan 25 10:00:49 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  |
------------------------------+------------------

Comment (by TobiasBg):

 Ok, I'm no longer speechless. I guess that does make sense, given that
 {{{
 var_dump( 0 == 'a2' );
 }}}
 also gives true.
 Initially, I was expecting (or hoping?) for strict comparison to be the
 default in {{{in_array}}}, but that would be inconsistent with other
 functions. So, yeah, it does make sense.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23289#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list