Make WordPress Core

Opened 18 years ago

Closed 17 years ago

Last modified 17 years ago

#2329 closed enhancement (wontfix)

Add filter for wp_get_archives

Reported by: coppit's profile coppit Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0
Component: General Keywords: needs-patch
Focuses: Cc:

Description

My Category Access plugin hides posts in restricted categories. wp_get_archives doesn't have a hook for me to fix the count. For example, if a month has 20 posts, but 4 are inaccessible, I'd like to reduce the post count to 16.

See my original post on wp-hackers here: http://comox.textdrive.com/pipermail/wp-hackers/2006-January/004096.html

Change History (7)

#1 @davidhouse
18 years ago

  • Severity changed from normal to enhancement

#2 @davidhouse
18 years ago

  • Keywords bg|commit added

#3 @rob1n
17 years ago

  • Keywords needs-patch added; wp_get_archives bg|commit removed

#4 @foolswisdom
17 years ago

  • Milestone set to 2.3

#5 @foolswisdom
17 years ago

  • Milestone changed from 2.3 to 2.5 (future)

#6 @pishmishy
17 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

Are you looking for the 'getarchives_where' filter? general-template.php, line 388. I imagine that will allow you to exclude particular posts from the count.

I'm going to close this ticket now as there hasn't been any real activity on it. Please reopen it if you feel more can be done.

#7 @santosj
17 years ago

  • Milestone 2.5 deleted
Note: See TracTickets for help on using tickets.