Make WordPress Core


Ignore:
Timestamp:
03/01/2004 06:13:32 AM (21 years ago)
Author:
saxmatt
Message:

Migration to get_settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-general.php

    r955 r956  
    2323
    2424function get_bloginfo($show='') {
    25     global $blogname, $admin_email;
     25    global $admin_email;
    2626
    2727    $do_perma = 0;
     
    8080        case 'name':
    8181        default:
    82             $output = $blogname;
     82            $output = get_settings('blogname');
    8383            break;
    8484    }
     
    206206function get_archives($type='', $limit='', $format='html', $before = "", $after = "", $show_post_count = false) {
    207207    global $tableposts, $time_difference;
    208     global $querystring_start, $querystring_equal, $querystring_separator, $month, $wpdb, $start_of_week;
     208    global $querystring_start, $querystring_equal, $querystring_separator, $month, $wpdb;
    209209
    210210    if ('' == $type) {
     
    271271        }
    272272    } elseif ('weekly' == $type) {
    273         if (!isset($start_of_week)) {
    274             $start_of_week = 1;
    275         }
     273    $start_of_week = get_settings('start_of_week');
    276274        $arcresults = $wpdb->get_results("SELECT DISTINCT WEEK($wp_posts_post_date_field, $start_of_week) AS `week`, YEAR($wp_posts_post_date_field) AS yr, DATE_FORMAT($wp_posts_post_date_field, '%Y-%m-%d') AS yyyymmdd FROM $tableposts WHERE post_date < '$now' AND post_status = 'publish' ORDER BY post_date DESC" . $limit);
    277275        $arc_w_last = '';
     
    281279                    $arc_year = $arcresult->yr;
    282280                    $arc_w_last = $arcresult->week;
    283                     $arc_week = get_weekstartend($arcresult->yyyymmdd, $start_of_week);
     281                    $arc_week = get_weekstartend($arcresult->yyyymmdd, get_settings('start_of_week'));
    284282                    $arc_week_start = date_i18n($archive_week_start_date_format, $arc_week['start']);
    285283                    $arc_week_end = date_i18n($archive_week_end_date_format, $arc_week['end']);
Note: See TracChangeset for help on using the changeset viewer.