WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#2248 closed defect (bug) (duplicate)

inconsistent number of posts in wp_list_cats() and wp_get_archives()

Reported by: wubbahed Owned by:
Milestone: Priority: normal
Severity: minor Version: 2.0
Component: Template Keywords:
Focuses: Cc:

Description

If you show the number of posts in each category using wp_list_cats() like this:
wp_list_cats('optioncount=1')
then the number displayed includes future posts.

If you show the number of posts in each month of an archive using wp_get_archives() like this:
wp_get_archives('type=monthly&show_post_count=1');
then the number displayed does NOT include future posts

Shouldn't wp_list_cats() exclude future posts as well? At the very least, both functions should be consistent with each other.

Change History (2)

comment:1 @skippy10 years ago

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

Sounds like #2211.

comment:2 @anonymous9 years ago

  • Milestone 2.0.1 deleted

Milestone 2.0.1 deleted

Note: See TracTickets for help on using tickets.