Make WordPress Core


Ignore:
Timestamp:
11/03/2003 05:45:57 PM (22 years ago)
Author:
saxmatt
Message:

Archives to use new permalink format.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2-include/b2template.functions.php

    r510 r511  
    165165        if ($arcresults) {
    166166            foreach ($arcresults as $arcresult) {
    167                 $url  = sprintf("%s%d%02d", $archive_link_m,  $arcresult->year,   $arcresult->month);
     167                $url  = get_month_link($arcresult->year,   $arcresult->month);
    168168                if ($show_post_count) {
    169169                    $text = sprintf("%s %d", $month[zeroise($arcresult->month,2)], $arcresult->year);
     
    180180        if ($arcresults) {
    181181            foreach ($arcresults as $arcresult) {
    182                 $url  = sprintf("%s%d%02d%02d", $archive_link_m, $arcresult->year, $arcresult->month, $arcresult->dayofmonth);
     182                $url  = get_day_link($arcresult->year, $arcresult->month, $arcresult->dayofmonth);
    183183                $date = sprintf("%d-%02d-%02d 00:00:00", $arcresult->year, $arcresult->month, $arcresult->dayofmonth);
    184184                $text = mysql2date($archive_day_date_format, $date);
     
    762762    echo $content;
    763763}
     764
    764765function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) {
    765766    $content = get_the_content($more_link_text, $stripteaser, $more_file);
Note: See TracChangeset for help on using the changeset viewer.