[wp-trac] Re: [WordPress Trac] #8481: Improved version of checked() in template.php

WordPress Trac wp-trac at lists.automattic.com
Sat May 2 01:31:17 GMT 2009


#8481: Improved version of checked() in template.php
-------------------------+--------------------------------------------------
 Reporter:  chmac        |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.8      
Component:  General      |     Version:           
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------

Comment(by chmac):

 I've updated the patch, amended the phpdocs and switched the order around.

 I think it makes more sense to say if (is_array($selected)) because that
 way you can have an array of selected values and mark each one as checked
 / selected. It probably doesn't make sense to mark multiple values
 selected but I'll leave that alone for now.

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


More information about the wp-trac mailing list