Make WordPress Core


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

Use get_option instead of get_settings. Just 'cause.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r4118 r4144  
    336336
    337337    $post->post_status = 'draft';
    338     $post->comment_status = get_settings('default_comment_status');
    339     $post->ping_status = get_settings('default_ping_status');
    340     $post->post_pingback = get_settings('default_pingback_flag');
    341     $post->post_category = get_settings('default_category');
     338    $post->comment_status = get_option('default_comment_status');
     339    $post->ping_status = get_option('default_ping_status');
     340    $post->post_pingback = get_option('default_pingback_flag');
     341    $post->post_category = get_option('default_category');
    342342    $post->post_content = apply_filters('default_content', $post_content);
    343343    $post->post_title = apply_filters('default_title', $post_title);
     
    11071107    echo '<fieldset><legend><input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp" /> <label for="timestamp">'.__('Edit timestamp').'</label></legend>';
    11081108
    1109     $time_adj = time() + (get_settings('gmt_offset') * 3600);
     1109    $time_adj = time() + (get_option('gmt_offset') * 3600);
    11101110    $post_date = ($for_post) ? $post->post_date : $comment->comment_date;
    11111111    $jj = ($edit) ? mysql2date('d', $post_date) : gmdate('d', $time_adj);
     
    16241624
    16251625function get_home_path() {
    1626     $home = get_settings('home');
    1627     if ($home != '' && $home != get_settings('siteurl')) {
     1626    $home = get_option('home');
     1627    if ($home != '' && $home != get_option('siteurl')) {
    16281628        $home_path = parse_url($home);
    16291629        $home_path = $home_path['path'];
Note: See TracChangeset for help on using the changeset viewer.