Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r4297 r3422  
    1111<h2><?php _e('General Options') ?></h2>
    1212<form method="post" action="options.php">
    13 <?php wp_nonce_field('update-options') ?>
    14 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p>
    1513<table class="optiontable">
    1614<tr valign="top">
     
    2523</tr>
    2624<tr valign="top">
    27 <th scope="row"><?php _e('WordPress address (URL):') ?></th>
     25<th scope="row"><?php _e('WordPress address (URI):') ?></th>
    2826<td><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>" size="40" class="code" /></td>
    2927</tr>
    3028<tr valign="top">
    31 <th scope="row"><?php _e('Blog address (URL):') ?></th>
     29<th scope="row"><?php _e('Blog address (URI):') ?></th>
    3230<td><input name="home" type="text" id="home" value="<?php form_option('home'); ?>" size="40" class="code" /><br /><?php _e('If you want your blog homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different than the directory</a> you installed WordPress in, enter that address here.'); ?></td>
    3331</tr>
     
    4139<th scope="row"><?php _e('Membership:') ?></th>
    4240<td> <label for="users_can_register">
    43 <input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_option('users_can_register')); ?> />
     41<input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_settings('users_can_register')); ?> />
    4442<?php _e('Anyone can register') ?></label><br />
    4543<label for="comment_registration">
    46 <input name="comment_registration" type="checkbox" id="comment_registration" value="1" <?php checked('1', get_option('comment_registration')); ?> />
     44<input name="comment_registration" type="checkbox" id="comment_registration" value="1" <?php checked('1', get_settings('comment_registration')); ?> />
    4745<?php _e('Users must be registered and logged in to comment') ?>
    4846</label>
     
    5250<th scope="row"><?php _e('New User Default Role:') ?></th>
    5351<td><label for="default_role">
    54 <select name="default_role" id="default_role"><?php wp_dropdown_roles( get_option('default_role') ); ?></select></label>
     52<select name="default_role" id="default_role"><?php
     53foreach($wp_roles->role_names as $role => $name) {
     54    $selected = (get_settings('default_role') == $role) ? 'selected="selected"' : '';
     55    echo "<option {$selected} value=\"{$role}\">{$name}</option>";
     56}
     57?></select></label>
    5558</td>
    5659</tr>
     
    6669<th scope="row"><?php _e('Times in the weblog should differ by:') ?> </th>
    6770<td><input name="gmt_offset" type="text" id="gmt_offset" size="2" value="<?php form_option('gmt_offset'); ?>" />
    68 <?php _e('hours') ?> (<?php _e('Your timezone offset, for example <code>-6</code> for Central Time.'); ?>)</td>
     71<?php _e('hours') ?> </td>
    6972</tr>
    7073<tr>
    7174<th scope="row"><?php _e('Default date format:') ?></th>
    7275<td><input name="date_format" type="text" id="date_format" size="30" value="<?php form_option('date_format'); ?>" /><br />
    73 <?php _e('Output:') ?> <strong><?php echo mysql2date(get_option('date_format'), current_time('mysql')); ?></strong></td>
     76<?php _e('Output:') ?> <strong><?php echo mysql2date(get_settings('date_format'), current_time('mysql')); ?></strong></td>
    7477</tr>
    7578<tr>
    7679<th scope="row"><?php _e('Default time format:') ?></th>
    7780<td><input name="time_format" type="text" id="time_format" size="30" value="<?php form_option('time_format'); ?>" /><br />
    78 <?php _e('Output:') ?> <strong><?php echo gmdate(get_option('time_format'), current_time('timestamp')); ?></strong></td>
     81<?php _e('Output:') ?> <strong><?php echo gmdate(get_settings('time_format'), current_time('timestamp')); ?></strong></td>
    7982</tr>
    8083<tr>
    8184<th scope="row">&nbsp;</th>
    82 <td><?php _e('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date formatting</a>. Click "Update options" to update sample output.') ?> </td>
     85<td><?php _e('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date formatting</a>. Save option to update sample output.') ?> </td>
    8386</tr>
    8487<tr>
     
    8790<?php
    8891for ($day_index = 0; $day_index <= 6; $day_index++) :
    89     $selected = (get_option('start_of_week') == $day_index) ? 'selected="selected"' : '';
    90     echo "\n\t<option value='$day_index' $selected>" . $wp_locale->get_weekday($day_index) . '</option>';
     92if ($day_index == get_settings('start_of_week')) $selected = " selected='selected'";
     93else $selected = '';
     94echo "\n\t<option value='$day_index' $selected>$weekday[$day_index]</option>";
    9195endfor;
    9296?>
     
    96100</fieldset>
    97101
    98 <p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" />
     102<p class="submit"><input type="submit" name="Submit" value="<?php _e('Update Options') ?> &raquo;" />
    99103<input type="hidden" name="action" value="update" />
    100104<input type="hidden" name="page_options" value="blogname,blogdescription,siteurl,admin_email,users_can_register,gmt_offset,date_format,time_format,home,start_of_week,comment_registration,default_role" />
Note: See TracChangeset for help on using the changeset viewer.