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-includes/comment-template.php

    r3995 r4144  
    9191        global $comment;
    9292        if ( '' == $d )
    93                 $date = mysql2date( get_settings('date_format'), $comment->comment_date);
     93                $date = mysql2date( get_option('date_format'), $comment->comment_date);
    9494        else
    9595                $date = mysql2date($d, $comment->comment_date);
     
    188188        $comment_date = $gmt? $comment->comment_date_gmt : $comment->comment_date;
    189189        if ( '' == $d )
    190                 $date = mysql2date(get_settings('time_format'), $comment_date);
     190                $date = mysql2date(get_option('time_format'), $comment_date);
    191191        else
    192192                $date = mysql2date($d, $comment_date);
     
    223223function get_trackback_url() {
    224224        global $id;
    225         $tb_url = get_settings('siteurl') . '/wp-trackback.php?p=' . $id;
    226 
    227         if ( '' != get_settings('permalink_structure') )
     225        $tb_url = get_option('siteurl') . '/wp-trackback.php?p=' . $id;
     226
     227        if ( '' != get_option('permalink_structure') )
    228228                $tb_url = trailingslashit(get_permalink()) . 'trackback/';
    229229
     
    277277                return;
    278278
    279         $req = get_settings('require_name_email');
     279        $req = get_option('require_name_email');
    280280        $commenter = wp_get_current_commenter();
    281281        extract($commenter);
     
    335335        if ($wpcommentsjavascript) {
    336336                if ( empty($wpcommentspopupfile) )
    337                         $home = get_settings('home');
     337                        $home = get_option('home');
    338338                else
    339                         $home = get_settings('siteurl');
     339                        $home = get_option('siteurl');
    340340                echo $home . '/' . $wpcommentspopupfile.'?comments_popup='.$id;
    341341                echo '" onclick="wpopen(this.href); return false"';
Note: See TracChangeset for help on using the changeset viewer.