Changeset 22010
- Timestamp:
- 09/26/2012 06:44:26 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-discussion.php
r21746 r22010 175 175 <th scope="row"><?php _e('Avatar Display'); ?></th> 176 176 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Avatar Display'); ?></span></legend> 177 <?php 178 $yesorno = array( 0 => __( 'Don’t show Avatars' ), 1 => __( 'Show Avatars' ) ); 179 foreach ( $yesorno as $key => $value) { 180 $selected = (get_option('show_avatars') == $key) ? 'checked="checked"' : ''; 181 echo "\n\t<label><input type='radio' name='show_avatars' value='" . esc_attr($key) . "' $selected/> $value</label><br />"; 182 } 183 ?> 177 <label for="show_avatars"> 178 <input type="checkbox" id="show_avatars" name="show_avatars" value="1" <?php checked( get_option('show_avatars'), 1 ); ?> /> 179 <?php _e( 'Show Avatars' ); ?> 180 </label> 184 181 </fieldset></td> 185 182 </tr>
Note: See TracChangeset
for help on using the changeset viewer.