[wp-trac] [WordPress Trac] #9862: checked/selected helper confuses '0' and ''

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 10 21:24:49 UTC 2009


#9862: checked/selected helper confuses '0' and ''
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |        Owner:  westi   
     Type:  defect (bug)       |       Status:  assigned
 Priority:  low                |    Milestone:  2.9     
Component:  Administration     |      Version:  2.8     
 Severity:  normal             |   Resolution:          
 Keywords:  has-patch commit   |  
-------------------------------+--------------------------------------------

Comment(by westi):

 Replying to [comment:19 Denis-de-Bernardy]:
 > @westi: I attached some more test cases, that better highlight the
 subtle change in behavior.

 Thank you. I've committed them to the wordpress-tests repo

 Replying to [comment:21 Denis-de-Bernardy]:
 > side note on this, the more I think about it, the more I'm feeling that
 changing the behavior for checked() might be wrong. selected() clearly
 needs the change imo, checked() is less sure.

 I think that they should have consistent behaviour between the two
 functions so if we improve one we improve the other and they have always
 had consistent behaviour and it makes it easier to use them.

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


More information about the wp-trac mailing list