Hola a todos.
Que es lo que hace ->
<?php checked($post
->comment_status, 'open'); ?>
Por ejemplo:
Código PHP:
Ver original<?php
function checked( $checked, $current = true, $echo = true) {
return __checked_selected_helper( $checked, $current, $echo, 'checked' );
}
function __checked_selected_helper( $helper, $current, $echo, $type) {
if ( $helper == $current)
$result = " $type='$type'";
else
$result = '';
if ($echo)
echo $result;
return $result;
}
checked($post->comment_status, 'open');
?>
El resultado retornado es:
un saludo