Make WordPress Core

Ticket #20889: 20889.patch

File 20889.patch, 1005 bytes (added by tmoorewp, 13 years ago)
  • wp-admin/options-discussion.php

     
    172172<tr valign="top">
    173173<th scope="row"><?php _e('Avatar Display'); ?></th>
    174174<td><fieldset><legend class="screen-reader-text"><span><?php _e('Avatar Display'); ?></span></legend>
    175 <?php
    176         $yesorno = array( 0 => __( 'Don&#8217;t show Avatars' ), 1 => __( 'Show Avatars' ) );
    177         foreach ( $yesorno as $key => $value) {
    178                 $selected = (get_option('show_avatars') == $key) ? 'checked="checked"' : '';
    179                 echo "\n\t<label><input type='radio' name='show_avatars' value='" . esc_attr($key) . "' $selected/> $value</label><br />";
    180         }
    181 ?>
     175        <label for="show_avatars">
     176                <input type="checkbox" id="show_avatars" name="show_avatars" value="1" <?php checked( get_option('show_avatars'), 1 ); ?> />
     177                <?php _e( 'Show Avatars' ); ?>
     178        </label>
    182179</fieldset></td>
    183180</tr>
    184181<tr valign="top">