WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 6 years ago

Last modified 6 years ago

#2329 closed enhancement (wontfix)

Add filter for wp_get_archives

Reported by: 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)

comment:1 davidhouse8 years ago

  • Severity changed from normal to enhancement

comment:2 davidhouse8 years ago

  • Keywords bg|commit added

comment:3 rob1n7 years ago

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

comment:4 foolswisdom7 years ago

  • Milestone set to 2.3

comment:5 foolswisdom7 years ago

  • Milestone changed from 2.3 to 2.5 (future)

comment:6 pishmishy6 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.

comment:7 santosj6 years ago

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