Changeset 1291 for trunk/wp-includes/template-functions-general.php
- Timestamp:
- 05/17/2004 12:31:33 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/template-functions-general.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-general.php
r1286 r1291 247 247 $arcresults = $wpdb->get_results("SELECT DISTINCT YEAR(post_date) AS `year`, MONTH(post_date) AS `month`, count(ID) as posts FROM $tableposts WHERE post_date < '$now' AND post_status = 'publish' GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC" . $limit); 248 248 if ($arcresults) { 249 $afterafter = $after; 249 250 foreach ($arcresults as $arcresult) { 250 251 $url = get_month_link($arcresult->year, $arcresult->month); 251 252 if ($show_post_count) { 252 253 $text = sprintf('%s %d', $month[zeroise($arcresult->month,2)], $arcresult->year); 253 $after = ' ('.$arcresult->posts.')' ;254 $after = ' ('.$arcresult->posts.')' . $afterafter; 254 255 } else { 255 256 $text = sprintf('%s %d', $month[zeroise($arcresult->month,2)], $arcresult->year);
Note: See TracChangeset
for help on using the changeset viewer.