Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#2157 closed defect (bug) (wontfix)

Published Articles for Future Appearance Get Counted in Categories

Reported by: schestowitz's profile schestowitz Owned by:
Milestone: Priority: low
Severity: normal Version: 2.0
Component: Administration Keywords: count article categories 2.0
Focuses: Cc:

Description

This is copied verbatim from the forum because it is clear and well-phrased:

<quote>
I routinely "queue up" a long list of articles for future publication. Given my schedule, I can never be sure that I will be around to publish on a given morning, so the queue approach really works for me. I basically just put in a future date, flag it as "published", and save it. Works great under 1.5.

Under 2.0, it still works, but the category list generated by wp_list_cats() reflects even the post-dated articles.

For instance, if a category has 3 articles in it, but one of them is flagged for publication on a future date, it shows "3" for the article count, rather than "2".

Also, if a category only has post-dated articles in it (i.e. nothing viewable by a normal user), the category still shows up in the list.

I would think that the proper behavior would be to only show categories that have current articles in it, and the count for those categories would only reflect current articles.
</quote>

  • Reported by incursio

Change History (1)

#1 @davidhouse
18 years ago

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

This can't be done with WordPress' current setup. When setting category_count, we can discount future posts, but as, currently, no events can be triggered when a future post is published, we can't decrement it then. There are bugs to get a scheduler (see #1637) built into WP, so this is another reason why that would be a good thing :)

Note: See TracTickets for help on using tickets.