Changeset 8831 for trunk/wp-admin/options-misc.php
- Timestamp:
- 09/06/2008 12:03:03 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-misc.php
r8802 r8831 41 41 <th scope="row" colspan="2" class="th-full"> 42 42 <label for="uploads_use_yearmonth_folders"> 43 <input name="uploads_use_yearmonth_folders" type="checkbox" id="uploads_use_yearmonth_folders" value="1" 43 <input name="uploads_use_yearmonth_folders" type="checkbox" id="uploads_use_yearmonth_folders" value="1"<?php checked('1', get_option('uploads_use_yearmonth_folders')); ?> /> 44 44 <?php _e('Organize my uploads into month- and year-based folders'); ?> 45 45 </label> … … 88 88 $size_names = array('' => 'Auto', 'thumbnail' => 'Thumbnail', 'medium' => 'Medium', 'large' => 'Large', 'full' => 'Full size'); 89 89 foreach ($size_names as $size => $name) { ?> 90 <input type="radio" name="image_default_size" id="image_default_size_<?php echo $size; ?>" value="<?php echo $size; ?>"<?php echo (get_option('image_default_size') == $size ? ' checked="checked"' : ''); ?> />90 <input type="radio" name="image_default_size" id="image_default_size_<?php echo $size; ?>" value="<?php echo $size; ?>"<?php checked(get_option('image_default_size'), $size); ?> /> 91 91 <label for="image_default_size_<?php echo $size; ?>"><?php _e($name); ?></label> 92 92 <?php … … 108 108 109 109 foreach ($alignments as $align => $name) { ?> 110 <input type="radio" name="image_default_align" id="image_default_align_<?php echo $align; ?>" value="<?php echo $align; ?>"<?php echo ($default_align == $align ? ' checked="checked"' : ''); ?> />110 <input type="radio" name="image_default_align" id="image_default_align_<?php echo $align; ?>" value="<?php echo $align; ?>"<?php checked($default_align, $align); ?> /> 111 111 <label for="image_default_align_<?php echo $align; ?>"><?php _e($name); ?></label> 112 112 <?php … … 123 123 $link_types = array('' => 'None', 'post' => 'Post URL', 'file' => 'File'); 124 124 foreach ($link_types as $type => $name) { ?> 125 <input type="radio" name="image_default_link_type" id="image_default_link_type_<?php echo $type; ?>" value="<?php echo $type; ?>"<?php echo (get_option('image_default_link_type') == $type ? ' checked="checked"' : ''); ?> />125 <input type="radio" name="image_default_link_type" id="image_default_link_type_<?php echo $type; ?>" value="<?php echo $type; ?>"<?php checked(get_option('image_default_link_type'), $type); ?> /> 126 126 <label for="image_default_link_type_<?php echo $type; ?>"><?php _e($name); ?></label> 127 127 <?php … … 141 141 <th scope="row" class="th-full"> 142 142 <label for="use_linksupdate"> 143 <input name="use_linksupdate" type="checkbox" id="use_linksupdate" value="1" 143 <input name="use_linksupdate" type="checkbox" id="use_linksupdate" value="1"<?php checked('1', get_option('use_linksupdate')); ?> /> 144 144 <?php _e('Track Links’ Update Times') ?> 145 145 </label> … … 150 150 <th scope="row" class="th-full"> 151 151 <label for="hack_file"> 152 <input type="checkbox" id="hack_file" name="hack_file" value="1" 152 <input type="checkbox" id="hack_file" name="hack_file" value="1"<?php checked('1', get_option('hack_file')); ?> /> 153 153 <?php _e('Use legacy <code>my-hacks.php</code> file support') ?> 154 154 </label>
Note: See TracChangeset
for help on using the changeset viewer.