[wp-trac] [WordPress Trac] #25668: selected, checked functions

WordPress Trac noreply at wordpress.org
Wed Oct 23 12:41:19 UTC 2013


#25668: selected, checked functions
-------------------------------+------------------------------
 Reporter:  ciapci             |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by jdgrimes):

 These functions both employ the `__checked_selected_helper()` function.
 This function returns the result regardless of whether it echo's it. I
 don't see why that would cause a problem though, unless you did this:

 {{{
 echo checked( $checked, $current, true );
 }}}

 That would echo the result twice, but it would be caused by using an extra
 unnecessary `echo`.

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


More information about the wp-trac mailing list