Make WordPress Core

Opened 21 years ago

Closed 19 years ago

Last modified 19 years ago

#2329 closed enhancement (wontfix)

Add filter for wp_get_archives

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

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
21 years ago

  • Severity normal → enhancement

#2 @davidhouse
21 years ago

  • Keywords bg|commit added

#3 @rob1n
20 years ago

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

#4 @foolswisdom
20 years ago

  • Milestone → 2.3

#5 @foolswisdom
19 years ago

  • Milestone 2.3 → 2.5 (future)

#6 @pishmishy
19 years ago

  • Resolution → wontfix
  • Status new → 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 @anonymized_218323
19 years ago

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