Make 'Show Avatars' a checkbox rather than a yes/no radio button. props tmoorewp, fixes #20889.
git-svn-id: http://core.svn.wordpress.org/trunk@22010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a41af6219a
commit
eac5264361
|
@ -174,13 +174,10 @@ printf( __('Comments should be displayed with the %s comments at the top of each
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
<th scope="row"><?php _e('Avatar Display'); ?></th>
|
<th scope="row"><?php _e('Avatar Display'); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e('Avatar Display'); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span><?php _e('Avatar Display'); ?></span></legend>
|
||||||
<?php
|
<label for="show_avatars">
|
||||||
$yesorno = array( 0 => __( 'Don’t show Avatars' ), 1 => __( 'Show Avatars' ) );
|
<input type="checkbox" id="show_avatars" name="show_avatars" value="1" <?php checked( get_option('show_avatars'), 1 ); ?> />
|
||||||
foreach ( $yesorno as $key => $value) {
|
<?php _e( 'Show Avatars' ); ?>
|
||||||
$selected = (get_option('show_avatars') == $key) ? 'checked="checked"' : '';
|
</label>
|
||||||
echo "\n\t<label><input type='radio' name='show_avatars' value='" . esc_attr($key) . "' $selected/> $value</label><br />";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</fieldset></td>
|
</fieldset></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
|
|
Loading…
Reference in New Issue