Make WordPress Core


Ignore:
Timestamp:
04/24/2004 07:23:57 PM (21 years ago)
Author:
saxmatt
Message:

Things should be as simple as possible, but no more.

File:
1 edited

Legend:

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

    r1121 r1142  
    7474            $output = get_settings('admin_email');
    7575            break;
     76        case 'charset':
     77            $output = get_settings('blog_charset');
     78            if ('' == $output) $output = 'UTF-8';
     79            break;
     80        case 'version':
     81            global $wp_version;
     82            $output = $wp_version;
     83            break;
    7684        case 'name':
    7785        default:
     
    200208}
    201209
    202 function get_archives($type='', $limit='', $format='html', $before = "", $after = "", $show_post_count = false) {
     210function wp_get_archives($args = '') {
     211    parse_str($args, $r);
     212    if (!isset($r['type'])) $r['type'] = '';
     213    if (!isset($r['limit'])) $r['limit'] = '';
     214    if (!isset($r['format'])) $r['format'] = 'html';
     215    if (!isset($r['before'])) $r['before'] = '';
     216    if (!isset($r['after'])) $r['after'] = '';
     217    if (!isset($r['show_post_count'])) $r['show_post_count'] = false;
     218    get_archives($r['type'], $r['limit'], $r['format'], $r['before'], $r['after'], $r['show_post_count']);
     219}
     220
     221function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) {
    203222    global $tableposts, $time_difference;
    204223    global $querystring_start, $querystring_equal, $querystring_separator, $month, $wpdb;
Note: See TracChangeset for help on using the changeset viewer.