Make WordPress Core


Ignore:
Timestamp:
08/30/2006 09:46:31 PM (18 years ago)
Author:
ryan
Message:

Use get_option instead of get_settings. Just 'cause.

File:
1 edited

Legend:

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

    r4133 r4144  
    4040<th scope="row"><?php _e('Membership:') ?></th>
    4141<td> <label for="users_can_register">
    42 <input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_settings('users_can_register')); ?> />
     42<input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_option('users_can_register')); ?> />
    4343<?php _e('Anyone can register') ?></label><br />
    4444<label for="comment_registration">
    45 <input name="comment_registration" type="checkbox" id="comment_registration" value="1" <?php checked('1', get_settings('comment_registration')); ?> />
     45<input name="comment_registration" type="checkbox" id="comment_registration" value="1" <?php checked('1', get_option('comment_registration')); ?> />
    4646<?php _e('Users must be registered and logged in to comment') ?>
    4747</label>
     
    5151<th scope="row"><?php _e('New User Default Role:') ?></th>
    5252<td><label for="default_role">
    53 <select name="default_role" id="default_role"><?php wp_dropdown_roles( get_settings('default_role') ); ?></select></label>
     53<select name="default_role" id="default_role"><?php wp_dropdown_roles( get_option('default_role') ); ?></select></label>
    5454</td>
    5555</tr>
     
    7070<th scope="row"><?php _e('Default date format:') ?></th>
    7171<td><input name="date_format" type="text" id="date_format" size="30" value="<?php form_option('date_format'); ?>" /><br />
    72 <?php _e('Output:') ?> <strong><?php echo mysql2date(get_settings('date_format'), current_time('mysql')); ?></strong></td>
     72<?php _e('Output:') ?> <strong><?php echo mysql2date(get_option('date_format'), current_time('mysql')); ?></strong></td>
    7373</tr>
    7474<tr>
    7575<th scope="row"><?php _e('Default time format:') ?></th>
    7676<td><input name="time_format" type="text" id="time_format" size="30" value="<?php form_option('time_format'); ?>" /><br />
    77 <?php _e('Output:') ?> <strong><?php echo gmdate(get_settings('time_format'), current_time('timestamp')); ?></strong></td>
     77<?php _e('Output:') ?> <strong><?php echo gmdate(get_option('time_format'), current_time('timestamp')); ?></strong></td>
    7878</tr>
    7979<tr>
     
    8686<?php
    8787for ($day_index = 0; $day_index <= 6; $day_index++) :
    88     $selected = (get_settings('start_of_week') == $day_index) ? 'selected="selected"' : '';
     88    $selected = (get_option('start_of_week') == $day_index) ? 'selected="selected"' : '';
    8989    echo "\n\t<option value='$day_index' $selected>" . $wp_locale->get_weekday($day_index) . '</option>';
    9090endfor;
Note: See TracChangeset for help on using the changeset viewer.