Permalink
Browse files

Make 'Show Avatars' a checkbox rather than a yes/no radio button. pro…

…ps tmoorewp, fixes #20889.

git-svn-id: http://core.svn.wordpress.org/trunk@22010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent a41af62 commit eac52643610762d11d0b6eda92b551be3e0040d0 @nacin nacin committed Sep 26, 2012
Showing with 4 additions and 7 deletions.
  1. +4 −7 wp-admin/options-discussion.php
@@ -174,13 +174,10 @@
<tr valign="top">
<th scope="row"><?php _e('Avatar Display'); ?></th>
<td><fieldset><legend class="screen-reader-text"><span><?php _e('Avatar Display'); ?></span></legend>
-<?php
- $yesorno = array( 0 => __( 'Don&#8217;t show Avatars' ), 1 => __( 'Show Avatars' ) );
- foreach ( $yesorno as $key => $value) {
- $selected = (get_option('show_avatars') == $key) ? 'checked="checked"' : '';
- echo "\n\t<label><input type='radio' name='show_avatars' value='" . esc_attr($key) . "' $selected/> $value</label><br />";
- }
-?>
+ <label for="show_avatars">
+ <input type="checkbox" id="show_avatars" name="show_avatars" value="1" <?php checked( get_option('show_avatars'), 1 ); ?> />
+ <?php _e( 'Show Avatars' ); ?>
+ </label>
</fieldset></td>
</tr>
<tr valign="top">

0 comments on commit eac5264

Please sign in to comment.