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-writing.php

    r4133 r4144  
    2222<td>
    2323<label for="rich_editing">
    24 <input name="rich_editing" type="checkbox" id="rich_editing" value="true" <?php checked('true', get_settings('rich_editing')); ?> />
     24<input name="rich_editing" type="checkbox" id="rich_editing" value="true" <?php checked('true', get_option('rich_editing')); ?> />
    2525<?php _e('Users should use the visual rich editor by default') ?></label><br />
    2626<label for="use_smilies">
    27 <input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked('1', get_settings('use_smilies')); ?> />
     27<input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked('1', get_option('use_smilies')); ?> />
    2828<?php _e('Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics on display') ?></label><br />
    29 <label for="use_balanceTags"><input name="use_balanceTags" type="checkbox" id="use_balanceTags" value="1" <?php checked('1', get_settings('use_balanceTags')); ?> /> <?php _e('WordPress should correct invalidly nested XHTML automatically') ?></label>
     29<label for="use_balanceTags"><input name="use_balanceTags" type="checkbox" id="use_balanceTags" value="1" <?php checked('1', get_option('use_balanceTags')); ?> /> <?php _e('WordPress should correct invalidly nested XHTML automatically') ?></label>
    3030</td>
    3131</tr>
     
    3636$categories = $wpdb->get_results("SELECT * FROM $wpdb->categories ORDER BY cat_name");
    3737foreach ($categories as $category) :
    38 if ($category->cat_ID == get_settings('default_category')) $selected = " selected='selected'";
     38if ($category->cat_ID == get_option('default_category')) $selected = " selected='selected'";
    3939else $selected = '';
    4040echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>";
     
    4848<?php
    4949foreach ($categories as $category) :
    50 if ($category->cat_ID == get_settings('default_link_category')) $selected = " selected='selected'";
     50if ($category->cat_ID == get_option('default_link_category')) $selected = " selected='selected'";
    5151else $selected = '';
    5252echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>";
     
    8585//Alreay have $categories from default_category
    8686foreach ($categories as $category) :
    87 if ($category->cat_ID == get_settings('default_email_category')) $selected = " selected='selected'";
     87if ($category->cat_ID == get_option('default_email_category')) $selected = " selected='selected'";
    8888else $selected = '';
    8989echo "\n\t<option value='$category->cat_ID' $selected>$category->cat_name</option>";
Note: See TracChangeset for help on using the changeset viewer.