WordPress.org

Make WordPress Core

Opened 12 years ago

Closed 11 years ago

#2352 closed enhancement (fixed)

Add ability to display yearly archives list

Reported by: stewart Owned by: westi
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.0
Component: Template Keywords: has-patch wp_get_archives yearly commit
Focuses: Cc:

Description

Wordpress has daily, weekly, and monthly archive types, but strangely no yearly type.

Attachments (4)

template-functions-general.php.diff (1.5 KB) - added by stewart 12 years ago.
Patch to add yearly archive type
template-functions-general.php.updated.diff (1.4 KB) - added by westi 12 years ago.
Improved patch using get_year_link
2352.diff (1.4 KB) - added by westi 12 years ago.
This one really doesn't use $now
archives-yearly.diff (1018 bytes) - added by snakefoot 11 years ago.
Patch for branch 2.0

Download all attachments as: .zip

Change History (12)

@stewart
12 years ago

Patch to add yearly archive type

@westi
12 years ago

Improved patch using get_year_link

#1 @westi
12 years ago

  • Component changed from General to Template
  • Keywords bg|has-patch added
  • Milestone set to 2.1
  • Owner changed from anonymous to westi
  • Severity changed from normal to enhancement
  • Status changed from new to assigned
  • Summary changed from Yearly archives type to Add ability to display yearly archives list

I have updated the patch to use get_year_link instead of (get_settings('home') to ensure the archive links produced obey the current permalink rules.

I have also removed the MONTH(post_date) AS month from the query as it is not needed.

This looks good for 2.1 as it is an enhancement.

#2 @westi
12 years ago

  • Keywords bg|commit added

#3 @westi
12 years ago

Patch rebased against trunk for the bug hunt

#4 @ryan
12 years ago

Needs to be updated to remove the < $now stuff.

@westi
12 years ago

This one really doesn't use $now

#5 @ryan
12 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [4138]) Add yearly archive display option. Props stewart and westi. fixes #2352

#6 @snakefoot
11 years ago

  • Milestone changed from 2.1 to 2.0.eventually
  • Resolution fixed deleted
  • Status changed from closed to reopened

Could this be applied to the 2.0 branch ? Every time a security fix comes for 2.0, then I have to re-apply this as my blog isn't getting any younger.

@snakefoot
11 years ago

Patch for branch 2.0

#7 @ryan
11 years ago

  • Milestone changed from 2.0.eventually to 2.1

2.0 is restricted to security fixes.

#8 @Nazgul
11 years ago

  • Keywords has-patch commit added; bg|has-patch bg|commit removed
  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.