[wp-trac] [WordPress Trac] #8481: Improved version of checked() in
template.php
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 4 03:00:49 GMT 2008
#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:
-------------------------+--------------------------------------------------
{{{
function psu_checked($checked, $current) {
if ( (is_array($current) && in_array($checked, $current)) ||
$checked == $current)
echo ' checked="checked"';
}
}}}
instead of
{{{
function checked( $checked, $current) {
if ( $checked == $current)
echo ' checked="checked"';
}
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/8481>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list