Make WordPress Core


Ignore:
Timestamp:
03/24/2008 08:28:15 AM (17 years ago)
Author:
matt
Message:

Some options juggling to put things where they fit a little better, and more exposition around the more obtuse options.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-reading.php

    r7343 r7498  
    5858</td>
    5959</tr>
    60 <tr valign="top">
    61 <th scope="row"><?php _e('Avatar display') ?></th>
    62 <td>
    63 <select name="show_avatars" id="show_avatars">
    64 <?php
    65     $yesorno = array(0 => __("Don't show Avatars"), 1 => __('Show Avatars'));
    66     foreach ( $yesorno as $key => $value) {
    67         $selected = (get_option('show_avatars') == $key) ? 'selected="selected"' : '';
    68         echo "\n\t<option value='$key' $selected>$value</option>";
    69     }
    70 ?>
    71 </select>
    72 </td>
    73 </tr>
    74 <tr valign="top">
    75 <th scope="row"><?php _e('Show Avatars with Rating') ?></th>
    76 <td>
    77 <select name="avatar_rating" id="avatar_rating">
    78 <?php
    79 $ratings = array( 'G' => _c('G|rating'), 'PG' => _c('PG|Rating'), 'R' => _c('R|Rating'), 'X' => _c('X|Rating'));
    80 foreach ($ratings as $key => $rating) :
    81     $selected = (get_option('avatar_rating') == $key) ? 'selected="selected"' : '';
    82     echo "\n\t<option value='$key' $selected>$rating</option>";
    83 endforeach;
    84 ?>
    85 </select>
    86 </td>
    87 </tr>
     60
    8861<tr valign="top">
    8962<th scope="row"><?php _e('Encoding for pages and feeds') ?></th>
     
    9467<p class="submit">
    9568<input type="hidden" name="action" value="update" />
    96 <input type="hidden" name="page_options" value="posts_per_page,posts_per_rss,rss_use_excerpt,blog_charset,gzipcompression,show_on_front,page_on_front,page_for_posts,show_avatars,avatar_rating" />
     69<input type="hidden" name="page_options" value="posts_per_page,posts_per_rss,rss_use_excerpt,blog_charset,gzipcompression,show_on_front,page_on_front,page_for_posts" />
    9770<input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" />
    9871</p>
Note: See TracChangeset for help on using the changeset viewer.